Re: 64bit filesize limit on a 32bit linux

From: Chris Wedgwood
Date: Tue May 31 2005 - 23:11:44 EST


On Tue, May 31, 2005 at 03:35:33PM -0400, Igor Schein wrote:

> # ulimit -f `echo 2^22-1|bc`;ulimit -f
> 4194303
> # ulimit -f `echo 2^22|bc`;ulimit -f
> unlimited
> # uname -r
> 2.6.11-1.1290_FC4

> I need to limit users to 5GB per file instead of 4GB. Do I need any
> kernel patches or can it somehow be done in user space?

The syscall (and also glibc glue) for this only support 32-bit values.
It's probably not hard to make a 64-bit version of these system calls
(I'm not sure about the glibc changes though).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/