Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-29 Thread Timo Sirainen
On Wed, 2009-07-29 at 11:04 +0200, Ralf Becker wrote: > Jul 29 10:38:27 trevi mail:err|error dovecot: IMAP(beckerr): > fchown(/u/f0/rzuser/beckerr/Mail/.subscriptions.lock, -1, -1) > failed: Invalid argument .. > I located the bug in src/lib/file-dotlock.c ... a patch is attached. > - if (fd

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-29 Thread Ralf Becker
Hi Timo, today I found this in the logs again: Jul 29 10:38:27 trevi mail:err|error dovecot: IMAP(beckerr): fchown(/u/f0/rzuser/beckerr/Mail/.subscriptions.lock, -1, -1) failed: Invalid argument Jul 29 10:38:27 trevi mail:err|error dovecot: IMAP(beckerr): file_dotlock_open() failed with subsc

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-08 Thread Axel Luttgens
Le 7 juil. 09 à 18:40, Timo Sirainen a écrit : [...] In that case I would have used those nfs_flush_*() functions. Good to know! Thanks for your comment, Axel

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-07 Thread Timo Sirainen
On Tue, 2009-07-07 at 17:58 +0200, Axel Luttgens wrote: > > Is my understanding of these sentences correct? > > "If owner and group are -1, nothing is done?" > > > > In this case it should be save to skip the call, shouldn't it? > > Yes, I guess so. Yes. Committed: http://hg.dovecot.org/dovecot-1

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-07 Thread Axel Luttgens
Le 6 juil. 09 à 23:07, Ralf Becker a écrit : Hello Axel, [...] It's not just the log message. If you have a look on the entire function, you'll see that it fails if fchown fails: [...] Yes, you're right; I've been too elliptic... :-( I was worried with a "solution" that potentially could fu

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-06 Thread Ralf Becker
Hello Axel, >> attached is a small tool to test fchown on a freshly created file: >> <> > > Damn... didn't go through... ;-) > ok... maybe i missed it... let's do it inline: #include #include #include #include #include main(int argc, char **argv) { int f = open(argv[1],O_CREAT|O_T

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-06 Thread Axel Luttgens
Le 6 juil. 09 à 14:00, Ralf Becker a écrit : Hello Axel, attached is a small tool to test fchown on a freshly created file: <> Damn... didn't go through... ;-) These are the tests I've made using this tool: [...] So I should alter the to subject to ... with AIX, NFS4 and netapp ... :

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-06 Thread Ralf Becker
Frank Bonnet schrieb: > > Which Ontap version do you run on the filer ? > NetApp Release 7.2.4: Fri Nov 16 00:34:57 PST 2007 -- __ Dipl.-Inform. (FH) Ralf Becker Rechenzentrum (r/ft) der FH Trier (Network|Mail|Web|Fir

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-06 Thread Ralf Becker
Hello Axel, attached is a small tool to test fchown on a freshly created file: <> These are the tests I've made using this tool: 0) compile > xlc /tmp/t.c -o /tmp/t environemnt --- >mount | grep -E "(filer0|hd4)" /dev/hd4 /jfs

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-06 Thread Frank Bonnet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Which Ontap version do you run on the filer ? Axel Luttgens wrote: > Le 6 juil. 09 à 09:47, Ralf Becker a écrit : > >> [...] >> >> Jul 6 08:14:32 trevi mail:err|error dovecot: IMAP(beckerr): >> fchown(/u/f0/rzuser/beckerr/Mail/.subscriptions.loc

Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-06 Thread Axel Luttgens
Le 6 juil. 09 à 09:47, Ralf Becker a écrit : [...] Jul 6 08:14:32 trevi mail:err|error dovecot: IMAP(beckerr): fchown(/u/f0/rzuser/beckerr/Mail/.subscriptions.lock, -1, -1) failed: Invalid argument [...] The error just appears on NFS mounted shared and I'm not sure if AIX or netapp is the

[Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-06 Thread Ralf Becker
Hi Timo, dovecot 1.2.0 is great! Faster and more stable on mboxes that 1.1.x by far... good job :-) Today I stumbled over a strange problem when I tried to subscribe an existing Mailbox (mbox), which doesn't work. Thunderbird IMAP log 9932[4124558]: 40f3498:imap.fh-trier.de: