[Dovecot] Bug? 1.0.0-test28 NFS locking problems
Timo Sirainen
tss at iki.fi
Tue Jul 20 20:29:01 EEST 2004
On Tue, 2004-07-20 at 19:24, Tim Southerwood wrote:
> Slight problem - linux 2.4 running dovecot, Solaris 2.8 home directory
> server. Full lockd support etc.
>
> I had to make the following code patches (at end of mail for clarity) to
> get dovecot to read the users mbox files at all.
>
> 1) fcntl with F_SETLKW will not work against a Solaris 2.8 server as
> proved with a small test program. Other forms of fcntl (ie F_SETLK) are
> OK.
Hmm. I guess I could make it optionally emulate F_SETLKW by looping and
checking the lock a few times a second. Or you could just disable fcntl
locks:
fcntl_locks_disable = yes
mbox_read_locks = dotlock
mbox_write_locks = dotlock
> 2) O_CREAT | O_EXCL are documented not to work over NFS properly (see
> man open(2) on linux). So I knocked out the O_EXCL and combined with (1)
> dovecot will talk over NFS to remote mbox files.
I don't think it breaks even if it's used, it just doesn't do anything?
Dovecot doesn't rely on it, it's just for extra safety in case it works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20040720/8a625b11/attachment-0001.bin>
More information about the dovecot
mailing list