4GB limit and possible integer overflow on quotas in v2.2.4
gavin.mccullagh at gcd.ie
Thu Aug 19 12:45:19 CEST 2010
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
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
Also, Horde reports a similar usage.
However, when I look at the disk usage in that directory on the filesystem
gavinmc at xxxxx:~$ sudo du -hs /kolab/var/imapd/spool/domain/x/xxxx.xxx/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?
More information about the Kolab-users