Re: File size limit exceeded for files > 2GB
On Thu, Aug 19, 2004 at 11:02:08AM +0000, Emiliano wrote:
> Hy everibody,
> when creating files bigger than 2GB I get error "File size limit
> exceeded"...
> I use woody, kernel 2.6.7, libc6 2.3.2.ds1-13, and this is the output
> from ulimit -a:
>
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> file size (blocks, -f) unlimited
> max locked memory (kbytes, -l) 32768
> max memory size (kbytes, -m) unlimited
> open files (-n) 1024
> pipe size (512 bytes, -p) 8
> stack size (kbytes, -s) 8192
> cpu time (seconds, -t) unlimited
> max user processes (-u) 10239
> virtual memory (kbytes, -v) unlimited
>
>
> I can't get the solution to this problem.
> Have I to recompile the utilities ( scp, ftp and so on ) against new
> kernel headers? ( hope this is not necessary).
Maybe. Making a file bigger than 2GB requires 64-bit indices rather
than 32-bit indices, so apps need to be recompiled with
-D_FILE_OFFSET_BITS=64
No. New kernel headers are unnecessary.
To see if an app is compiled with 64bit file pointers:
stefan:~$ strace -eopen tail -0 /etc/passwd
...stuff edited out...
open("/etc/passwd", O_RDONLY|O_LARGEFILE) = 3
O_LARGEFILE means the program was compiled for >2G files.
Reply to: