bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19530: Solaris 10 df and zfs


From: Pádraig Brady
Subject: bug#19530: Solaris 10 df and zfs
Date: Wed, 07 Jan 2015 20:55:53 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 07/01/15 20:20, Ted Carr wrote:
> Pádraig,
> 
> I patched df and it is now reporting the / Filesystem 'name' properly

Good.

> however there is still a difference in the reported 'Size' of the FS from 
> what the SUN command shows...
> SUN:
> # /usr/bin/df -h /
> Filesystem             size   used  avail capacity  Mounted on
> rpool/ROOT/q414         67G    11G    40G    22%    /
> 
> GNU:
> # ./df -h /
> Filesystem       Size  Used Avail Use% Mounted on
> rpool/ROOT/q414   51G   11G   40G  22% /
> 
> 67G vs. 51G

Hmm, it seems that we can't get the correct stats for / ?
This is from df -a on your system:

# /var/tmp/coreutils-8.23/src/df -a -hl
Filesystem                                                     Size  Used Avail 
Use% Mounted on
rpool/ROOT/q414                                                   -     -     - 
   - /
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1             -     -     - 
   - /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1   51G   11G   40G 
 22% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1

What do you get from: stat -f /

The next step would be to add a bit of debug to get_fs_usage() in lib/fsusage.c
to see what's being returned there.

thanks,
Pádraig





reply via email to

[Prev in Thread] Current Thread [Next in Thread]