[Dovecot] Maildir FS quota [was: Re: pre-1.0.rc27: Index and mbox fixes]

Timo Sirainen tss at iki.fi
Sun Mar 11 22:01:45 EET 2007


On Sun, 2007-03-11 at 21:45 +0200, Timo Sirainen wrote:
> So the only problem is if the last uidlist rename() fails. But that I
> hope won't fail because it's done inside the same directory, and the
> maildir root directory is pretty static. 

/mnt/Maildir/tmp% mv 82 83
mv: cannot move `82' to `83': No space left on device

/mnt/Maildir/tmp% mv 82 81
/mnt/Maildir/tmp%

So looks like at least Linux+ext3 allows rename()s that replace existing
files, but doesn't allow rename()s that simply change the file's name.
This would be enough for the dovecot-uidlist.lock renaming.

Can someone try if this works the same with filesystem quotas, and with
other operating systems and filesystems?

Easiest way to fill the disk space is:

dd if=/dev/zero of=zero
for i in `seq 1 1000`; do touch $i; done

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070311/4187904d/attachment.pgp 


More information about the dovecot mailing list