18 Feb
2007
18 Feb
'07
10:49 p.m.
Hi,
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.
regards,
Martin