On Jan 22, 2009, at 1:43 AM, Matt Brookings wrote:
Where do you come up with 128bit from? On most systems a 'long long' is going
to be a 64bit integer.  That's what I'm currently using.


Sorry, you're right on that.

Why isn't it enough to keep the current quota system, and just update all related code to use a long long (64 bits) for the byte counter? Will quotas ever grow that huge? In the next 10 years?

You could even keep the 32 bit numbers, and just update all quota- checking code to round sizes up to the nearest KB -- now you're able to have quotas up to 2000 GB (2TB). Since a single email isn't going to be 2GB, each entry in maildirsize can still be a 32-bit int and you may not have to modify qmail or the POP/IMAP servers. You only need to update the code that rebuilds the file and checks for an overquota condition.

-Tom


!DSPAM:497a2d9e32683946919024!

Reply via email to