GNU bug report logs - #19530
df: accommodate Solaris 10/zfs reporting munged sizes

Previous Next

Package: coreutils;

Reported by: Ted Carr <edward.w.carr <at> gsk.com>

Date: Wed, 7 Jan 2015 17:36:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Ted Carr <edward.w.carr <at> gsk.com>,  "19530 <at> debbugs.gnu.org" <19530 <at> debbugs.gnu.org>
Subject: bug#19530: Solaris 10 df and zfs
Date: Wed, 07 Jan 2015 20:55:53 +0000
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




This bug report was last modified 6 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.