On Wed, Mar 15, 2006 at 09:44:52AM +0900, [EMAIL PROTECTED] wrote:
> Quoting Sam Varshavchik <[EMAIL PROTECTED]>:
> >>Can Courier-imap handle quota over 2GB under 32bit CPU & OS?
> >
> >Not likely.
> >
> >>I doubt it can't.
> >
> >Right.  But even 32bit CPUs can handle 64bit quantities, and if the OS
> >uses 64bit values to represent file offsets and file sizes,
> >Courier-IMAP will be able to handle quotas over 2GB.
> 
> 
> This is not so different from Exim case.
> Exim-4.50 has same issue but Exim-4.60 does not.
> Exim-4.60 can handle quota over 2GB under 32bit CPU/OS.

As far as I can see, exim-4.60 has the same issue: it calculates the quota
in an "off_t" variable. If your operating system's off_t is 64 bits (as is
the case with FreeBSD), you're in the clear. If it is 32 bits (as is the
case with Red Hat Enterprise Linux) then you're not.

Comparing src/transport/appendfile.c between 4.50 and 4.60, the only
significant change I can see is that you're now allowed to use the character
'G' in a quota, i.e. you can write 1G instead of 1024M. Also, a few places
were fixed where 'int' was used but 'off_t' should have been used. I'm
pretty sure you'll still be limited to a 2G quota on an O/S which provides
only a 32-bit off_t.

This was discussed at length here only a couple of weeks ago. Look through
the list archives.

Regards,

Brian.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to