[Dovecot] too many open files error when using quota plugin

Timo Sirainen tss at iki.fi
Wed Jan 24 17:18:15 UTC 2007


On Wed, 2007-01-24 at 11:44 -0500, Justin McAleer wrote:
> open("/var/mailstore/01/1a/301620/Maildir/./maildirsize", 
> O_RDWR|O_APPEND) = 1016
>  read(1016, "1024S\n395 1\n397 1\n", 5120) = 18
>  read(1016, "", 5102)                    = 0
>  close(4294967295)                       = -1 EBADF (Bad file descriptor)

Thanks for the strace, I had tried to find this bug earlier also, but I
didn't then notice the problem. Fixed here:
http://dovecot.org/list/dovecot-cvs/2007-January/007518.html

> On a side note, I'm just curious why it needs to read the maildirsize 
> file for a fetch request anyway?

Hmm. Yea, that's a bit pointless. I should change the code to delay the
quota counting until it's really needed.
-------------- 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/20070124/6199eafc/attachment.pgp 


More information about the dovecot mailing list