4GB limit and possible integer overflow on quotas in v2.2.4
Gavin McCullagh
gavin.mccullagh at gcd.ie
Thu Aug 19 12:45:19 CEST 2010
Hi,
I have two problems with the cyrus quotas in kolab v2.2.4.
== Quota Limit ==
If I modify a user's quota in the web admin interface, the admin interface
refuses to set a quota higher than 4GB. I get the error:
Quota must be smaller than 4096
== Possible Integer Overflow?? ==
If I try to set the quota in cyradm, it accepts the higher quota limit, but
there seems to be something wrong with how cyradm actually reports the
quota usage.
localhost> lq user/yyyyyyyyyy at xxxxx.xxxx
STORAGE 860853/10000000 (8.60853%)
and similarly, the quota file has:
gavinmc at xxxxx:~$ sudo cat /kolab/var/imapd/domain/x/xxxx.xxx/quota/y/user.yyyyyyyyyyy
881516990
10000000
Also, Horde reports a similar usage.
However, when I look at the disk usage in that directory on the filesystem
I see:
gavinmc at xxxxx:~$ sudo du -hs /kolab/var/imapd/spool/domain/x/xxxx.xxx/y/user/yyyyyyyyy
7.9G /kolab/var/imapd/spool/domain/x/xxx.xx/y/user/yyyyyyyyy
I can see a somewhat similar bug report is resolved here, but there seems
to still be a problem here. Is this an perhaps an integer overflow bug in
the code that measures the quota usage?
https://issues.kolab.org/issue1262
Gavin
More information about the users
mailing list