[Dovecot] Maildir unreliability
Timo Sirainen
tss at iki.fi
Mon Oct 25 17:58:03 EEST 2004
On 25.10.2004, at 17:43, Miquel van Smoorenburg wrote:
> Well, there is a lockless way to do readdir, but it would mean
> buffering the entire readdir output in memory.
Dovecot needs to store them into memory in any case.
> This basically just retries until you've done an entire readdir() on
> the directory without mtime changes.
Sure, but I don't really see that as acceptable solution. The problem
usually shows up only when the mailbox is getting read and modified a
lot at the same time. The mtime might never stop changing.
In "normal use" it might work well, but so would locking (and locking
would be guaranteed to work).
It could help with external changes which don't use Dovecot's locking,
but.. Still sounds pretty ugly :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20041025/b999ce2b/attachment-0001.bin>
More information about the dovecot
mailing list