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


Message #20 received at 19530 <at> debbugs.gnu.org (full text, mbox):

From: Ted Carr <edward.w.carr <at> gsk.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "19530 <at> debbugs.gnu.org" <19530 <at> debbugs.gnu.org>
Subject: RE: bug#19530: Solaris 10 df and zfs
Date: Wed, 7 Jan 2015 22:13:44 +0000
Pádraig,

Here is what I get:

# ./stat -f /      
  File: "/"
    ID: 4010002  Namelen: 255     Type: zfs
Block size: 131072     Fundamental block size: 512
Blocks: Total: 106248371  Free: 83645114   Available: 83645114
Inodes: Total: 83922472   Free: 83645114

That said ... Check this out:

Before the patch it was reporting this for root:

Filesystem                                                     Size  Used Avail Use% Mounted on
/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

Which is what I see in the output from SUN df in these two lines (size matches):

/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        51G    11G    40G    22%    /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

Running a SUN df on one of the above "FS" gives this:

# df -h /platform/sun4u-us3/lib/libc_psr.so.1
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/q414         67G    11G    40G    22%    /

# zpool list rpool
NAME   SIZE  ALLOC   FREE  CAP  HEALTH  ALTROOT
rpool   68G  26.8G  41.2G  39%  ONLINE  -

Not sure if that helps or not...

I did find this: http://www.c0t0d0s0.org/archives/6168-df-considered-problematic.html.  About half way down the page you will see "Digging in the source" which may help, or not. ;-)

Cheers,
Ted




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.