On Mon, Feb 27, 2006 at 06:16:10PM -0500, Sam Varshavchik wrote:
> >>Yes. Either upgrade to a 64-bit CPU, or upgrade to a platform that
> >>represents file offsets as 64-bit quantities.
> >
> >I do not understand what you mean with the last thing you say. Fellow
> >workers don't understand it too.
> >
> >Would you be so kind to be a bit more verbose about this issue?
>
> It means that 2^31 is approximately 2 gigabytes, which is the maximum
> positive integer that can be expressed using a 32-bit quantity. On 32-bit
> platforms, file offsets are a 32-bit quantity, and thus limit the quota
> setting to about 2 GB.
>
> To reliably use quotas greater than 2 GB you must move to a 64-bit platform.
To be more specific, this does not necessarily mean changing your hardware
to a 64-bit CPU. You just need an operating system which uses 64-bit
quantities for its file offset type, off_t
You can test by running this little C program:
#include <stdio.h>
#include <sys/types.h>
int main(void)
{
printf("off_t is %d bits\n", sizeof(off_t)*8);
return 0;
}
Under FreeBSD 5.4, running on a 32-bit CPU, I get "64" as the answer. But on
CentOS 4.2 (which is Red Hat ES4 minus the logos) I get "32".
If you're stuck with using Linux, you might be able to find a less
conservative Linux distro which has a 64-bit off_t. I don't know enough
about Linux to suggest which ones to try.
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