[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Still seeing large file problem
remove
-----Original Message-----
From: owner-linux-crypto@nl.linux.org
[mailto:owner-linux-crypto@nl.linux.org]On Behalf Of Dale Amon
Sent: Wednesday, March 07, 2001 9:50 AM
To: linux-crypto
Subject: Still seeing large file problem
Still having problems with 2G files. I can create a multigig file of
zeroes file for my loopback, but I'm running into problems
when I try to open it. I wrote a small test prog that repro's
my problem and I've tried everything I can think of.
I'm hoping there is something obvious and stupid and easily fixed :-)
kernel: 2.4.0 with 2.4.0.3 int patches
Linux starbase2 2.4.0 #5 SMP Wed Feb 14 19:22:54 GMT 2001 i686 unknown
libc6: libc6-dev_2.2.2-1_i386.deb
libc6_2.2.2-1_i386.deb
dist: debian sid, bleeding edge current
Test program:
-------------- test.c
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
main () {
const char *file = "/bigloop";
int mode = O_RDONLY;
int ffd;
ffd = open (file, mode);
if (ffd < 0) {
perror (file);
exit (1);
}
exit (0);
}
------------
test run:
# gcc -g test.c -o test
# ./test
/bigloop: File too large
test file:
# ls -lg /bigloop
-rw-rw-r-- 1 root root 2252800000 Feb 26 14:59 /bigloop
strace of test:
root@starbase2:/home/amon# strace ./test
execve("./test", ["./test"], [/* 20 vars */]) = 0
uname({sys="Linux", node="starbase2", ...}) = 0
brk(0) = 0x8049630
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(0x3, 0xbffff02c) = 0
old_mmap(NULL, 43259, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0$\320\1"..., 1024) =
1024
fstat64(0x3, 0xbffff074) = 0
old_mmap(NULL, 1108036, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40022000
mprotect(0x40127000, 38980, PROT_NONE) = 0
old_mmap(0x40127000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x104000) = 0x40127000
old_mmap(0x4012d000, 14404, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4012d000
close(3) = 0
munmap(0x40017000, 43259) = 0
getpid() = 13901
open("/bigloop", O_RDONLY) = -1 EFBIG (File too large)
write(2, "/bigloop: File too large\n", 25/bigloop: File too large
) = 25
_exit(1) = ?
--
------------------------------------------------------
Use Linux: A computer Dale Amon, CEO/MD
is a terrible thing Village Networking Ltd
to waste. Belfast, Northern Ireland
------------------------------------------------------
Linux-crypto: cryptography in and on the Linux system
Archive: http://mail.nl.linux.org/linux-crypto/
Linux-crypto: cryptography in and on the Linux system
Archive: http://mail.nl.linux.org/linux-crypto/