Re: problems with large files
On Fri, Jul 27, 2001 at 02:56:01PM +0200, Wichert Akkerman wrote:
> Previously Bas Zoetekouw wrote:
> > So upgrading to woody would fix this?
>
> think so, yes.
This is true for tools as ls, cp, ... but some (both in unstable and
testing) don't work:
igor@tass:igor:-> ls -l bigfile
-rw-r--r-- 1 igor igor 2414817280 jui 27 15:54 bigfile
igor@tass:igor:-> stat bigfile
bigfile: Value too large for defined data type
igor@tass:igor:-> scp -1 bigfile igenibel@auric.debian.org:
bigfile: File too large
igor@tass:igor:->
For stat, it uses lseek64:
[...]
lstat64("bigfile", {st_mode=S_IFREG|0644, st_size=2414817282, ...}) = 0
write(2, "bigfile: Value too large for def"..., 47bigfile: Value too large for defined data type
) = 47
_exit(0) = ?
igor@tass:igor:->
For scp, it uses _llseek:
[...]
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
_llseek(6, 0, 0xbfffef74, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(6, "\1scp: bigfile: File too large\n", 30) = 30
write(2, "bigfile: File too large", 23bigfile: File too large) = 23
write(2, "\n", 1
) = 1
close(-1) = -1 EBADF (Bad file descriptor)
munmap(0x40016000, 4096) = 0
_exit(1) = ?
igor@tass:igor:->
I think many of tools could be wrong with large files but I don't know all
PS: I'll send bug report immediatly to those I know
--
Igor Genibel -- http://www.genibel.org -- http://people.debian.org/~igenibel
Debian: igenibel@debian.org Tuxfamily: igor@tuxfamily.org
Freedom For Everyone
15:59:23 up 49 min, 7 users, load average: 0.22, 0.72, 0.51
Reply to: