public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 64bit filesize limit on a 32bit linux
@ 2005-05-31 19:35 Igor Schein
  2005-06-01  4:10 ` Chris Wedgwood
  0 siblings, 1 reply; 2+ messages in thread
From: Igor Schein @ 2005-05-31 19:35 UTC (permalink / raw)
  To: linux-kernel

Hi,

# 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?

Thanks

Igor

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 64bit filesize limit on a 32bit linux
  2005-05-31 19:35 64bit filesize limit on a 32bit linux Igor Schein
@ 2005-06-01  4:10 ` Chris Wedgwood
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Wedgwood @ 2005-06-01  4:10 UTC (permalink / raw)
  To: Igor Schein; +Cc: linux-kernel

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).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-01  4:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 19:35 64bit filesize limit on a 32bit linux Igor Schein
2005-06-01  4:10 ` Chris Wedgwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox