[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sparse file check failed
From: |
John T. Rose |
Subject: |
Re: sparse file check failed |
Date: |
Wed, 06 Dec 2006 09:58:59 CST |
In message <address@hidden>,
Paul Eggert writes:
> "John T. Rose" <address@hidden> writes:
>
> > + dd bs=1 seek=131073 of=sparse
> > + cp --sparse=always sparse copy
>
> Thanks for reporting this.
> What kind of file system are you writing to?
/dev/hda1 on /usr/mnt.rom/cf type ext2 (rw)
> If you execute the following shell commands:
>
> rm sparse
> dd bs=1 seek=131073 of=sparse
> strace -o tr cp --sparse=always sparse copy
>
> what are the last few system calls (in the file 'tr')? It'd be nice
> to see the pattern, so that we can know what actually failed.
# ../src/dd bs=1 seek=131073 of=sparse < /dev/null
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.726926 s, 0.0 kB/s
# ll
total 0
-rw-r--r-- 1 root root 131073 Dec 6 09:41 sparse
# du -sh *
0 sparse
# strace -o tr ../src/cp --sparse=always sparse copy
../src/cp: writing `copy': Invalid argument
# ll
total 12
-rw-r--r-- 1 root root 0 Dec 6 09:43 copy
-rw-r--r-- 1 root root 131073 Dec 6 09:41 sparse
-rw-r--r-- 1 root root 8207 Dec 6 09:43 tr
Here is the tail part of the trace ...
open("sparse", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=131073, ...}) = 0
open("copy", O_WRONLY|O_CREAT|O_LARGEFILE, 0644) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
brk(0x2019000) = 0x2019000
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [4096], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [8192], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [12288], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [16384], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [20480], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [24576], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [28672], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [32768], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [36864], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [40960], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [45056], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [49152], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [53248], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [57344], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [61440], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [65536], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [69632], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [73728], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [77824], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [81920], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [86016], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [90112], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [94208], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [98304], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [102400], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [106496], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [110592], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [114688], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [118784], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [122880], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [126976], SEEK_CUR) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
_llseek(4, 4096, [131072], SEEK_CUR) = 0
read(3, "\0", 4096) = 1
_llseek(4, 1, [131073], SEEK_CUR) = 0
read(3, "", 4096) = 0
ftruncate64(4, 13834516064769277953) = -1 EINVAL (Invalid argument)
write(2, "../src/cp: ", 11) = 11
write(2, "writing `copy\'", 14) = 14
write(2, ": Invalid argument", 18) = 18
write(2, "\n", 1) = 1
hrm, crazy offset to ftruncate64?!
John
--
John T. Rose Information Technology Services
address@hidden Academic Systems Group
Systems Analyst 237 Durham Center
<A HREF="http://rose.public.iastate.edu/">John T. Rose</A>