20 Jul
2004
20 Jul
'04
8:29 p.m.
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.
- 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
- 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.