[Dovecot] Creating and renaming mbox folders on NFS
tss at iki.fi
Wed May 14 19:55:26 EEST 2003
On Wed, 2003-05-14 at 18:37, Robert Evans wrote:
> There's a problem with creating (and with renaming) mailboxes in the NFS
> mounted ~/Mail directory. For an arbitrary mailbox "newbox", say,
> dovecot tries to create the parent directory path /home/username/Mail
> before creating the newbox file.
Yes, I think I'll actually change a bit how that function works. It
almost always needs to create only the last directory, so I'll just
start checking the existence from the second-last directory in it and
start going down until one is found.
> (Could also remove the && errno == EEXIST part - it's redundant
> when access(dir,F_OK) is checking for existence).
Not really, there could be race condition when two sessions try to
create it at the same time (however unlikely that is).
More information about the dovecot