[Dovecot] Possible Bug in quota-fs.c

Martin Konopka martin.konopka at mknetz.de
Sun Feb 18 20:49:56 UTC 2007


I'm using filesystem quotas with dovecot 1.0rc22 on my Linux 2.4.27 box. The 
quota limit gets correctly reported in kilobytes to the client but the amount 
of used space is reported in megabytes.

In quota-fs.c I noticed that only the currently used space is divided by 1024:

Line 241:

		*value_r = dqblk.dqb_curblocks / 1024;
                *limit_r = dqblk.dqb_bsoftlimit;

After removing /1024 everything works fine.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20070218/5a5bdf6a/attachment.pgp 

More information about the dovecot mailing list