Hi Paul,

My apologies for not responding sooner.  I've attached the output of strace you
requested.

Cheers,

-J

--
On Wed, 27 Oct 2004, Paul Eggert wrote:

> Joshua Hoblitt <[EMAIL PROTECTED]> writes:
> 
> > This is how a 4.5TB filesystem with ~400GB of data on it is displayed with 
> > df
> > from coreutils-5.2.1.
> >
> > nkfb0 root # df -H
> > Filesystem             Size   Used  Avail Use% Mounted on
> > ...
> > /dev/archive/scr0      601G   412G   183G  70% /scr0
> 
> Are you sure it's a 'df' bug?  It might be a bug in the file system,
> or in the kernel.
> 
> What does the following command output?  I am particularly interested
> in the calls to statfs (or to functions like statfs).
> 
> strace -v df -k /dev/archive/scr0
> 


execve("/bin/df", ["df", "-k", "/dev/archive/scr0"], [/* 33 vars */]) = 0
uname({sysname="Linux", nodename="nkfb0", release="2.6.9-gentoo-r1", 
version="#1 SMP Tue Oct 26 16:16:05 HST 2004", machine="x86_64"}) = 0brk(0)     
                             = 0x509000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a9556a000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_dev=makedev(8, 3), st_ino=528346, st_mode=S_IFREG|0644, 
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=136, st_size=64957, 
st_atime=2004/12/26-11:11:23, st_mtime=2004/12/26-11:11:23, 
st_ctime=2004/12/26-11:11:23}) = 0
mmap(NULL, 64957, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556b000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\302"..., 640) = 640
lseek(3, 64, SEEK_SET)                  = 64
read(3, "[EMAIL PROTECTED]@[EMAIL PROTECTED]"..., 616) = 616
lseek(3, 680, SEEK_SET)                 = 680
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0"..., 32) = 32
fstat(3, {st_dev=makedev(8, 3), st_ino=300326, st_mode=S_IFREG|0755, 
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2416, 
st_size=2205736, st_atime=2004/10/26-16:47:02, st_mtime=2004/09/28-17:50:38, 
st_ctime=2004/09/28-17:50:40}) = 0
lseek(3, 64, SEEK_SET)                  = 64
read(3, "[EMAIL PROTECTED]@[EMAIL PROTECTED]"..., 616) = 616
mmap(NULL, 2137768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x2a95658000
mprotect(0x2a9576b000, 1011368, PROT_NONE) = 0
mmap(0x2a95858000, 24576, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x200000) = 0x2a95858000
mmap(0x2a9585e000, 16040, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a9585e000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a95862000
mprotect(0x2a95859000, 8192, PROT_READ) = 0
arch_prctl(0x1002, 0x2a958624a0)        = 0
munmap(0x2a9556b000, 64957)             = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\1\332\334\24\341\332\27\v", 8) = 8
close(3)                                = 0
brk(0)                                  = 0x509000
brk(0x52a000)                           = 0x52a000
stat("/dev/archive/scr0", {st_dev=makedev(0, 14), st_ino=2422, 
st_mode=S_IFBLK|0640, st_nlink=1, st_uid=0, st_gid=0, st_blksize=1024, 
st_blocks=0, st_rdev=makedev(253, 0), st_atime=0, st_mtime=0, st_ctime=0}) = 0
open("/etc/mtab", O_RDONLY)             = 3
fstat(3, {st_dev=makedev(8, 3), st_ino=1710352, st_mode=S_IFREG|0644, 
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=292, 
st_atime=2004/10/27-13:37:39, st_mtime=2004/10/27-16:10:28, 
st_ctime=2004/10/27-16:10:28}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a9556b000
read(3, "/dev/sda3 / ext3 rw,noatime 0 0\n"..., 4096) = 292
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2a9556b000, 4096)              = 0
fstat(1, {st_dev=makedev(0, 9), st_ino=4, st_mode=S_IFCHR|0620, st_nlink=1, 
st_uid=1041, st_gid=5, st_blksize=1024, st_blocks=0, st_rdev=makedev(136, 2), 
st_atime=2004/12/26-11:11:30, st_mtime=2004/12/26-11:11:30, 
st_ctime=2004/12/26-11:10:56}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a9556b000
write(1, "Filesystem           1K-blocks  "..., 67Filesystem           
1K-blocks      Used Available Use% Mounted on
) = 67
statfs("/scr0", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=146499832, 
f_bfree=80165081, f_bavail=78697075, f_files=9318400, f_ffree=9282355, 
f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
write(1, "/dev/archive/scr0    585999328 2"..., 62/dev/archive/scr0    
585999328 265339004 314788300  46% /scr0
) = 62
munmap(0x2a9556b000, 4096)              = 0
exit_group(0, 0, 0x2a9585ca20, 0x2a956576e8, 0x2 <unfinished ... exit status 0>
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to