Subject: bin/27276: df prints no suffix
To: None <gnats-bugs@gnats.NetBSD.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 10/16/2004 11:26:28
>Number:         27276
>Category:       bin
>Synopsis:       df prints no suffix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 16 15:45:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kimmo Suominen
>Release:        NetBSD 2.0G / current from 2004-07-03
>Organization:
Kimmo Suominen
>Environment:
System: NetBSD grendel.gw.com 2.0G NetBSD 2.0G (GW-GENERIC) #77: Sat Jul 10 16:55:52 EDT 2004 kim@hrothgar.gw.com:/usr/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
No suffix is printed by "df -lh" for some sizes.  See example below,
the "Used" column for /dev/wd2i reads "10.0".  It has 10G used.

    grendel:~> df -lh
    Filesystem    Size     Used     Avail Capacity  Mounted on
    /dev/wd0a      31M      23M      7.1M    76%    /
    /dev/wd0e     217M     196M       10M    95%    /usr
    /dev/wd0g     990M     924M       17M    98%    /usr/local
    /dev/wd0f     495M      31M      439M     6%    /var
    mfs:220        38M     374K       36M     1%    /tmp
    kernfs        1.0K     1.0K        0B   100%    /kern
    procfs        4.0K     4.0K        0B   100%    /proc
    /dev/wd0h      17G      41M       16G     0%    /net/grendel/u-9
    /dev/wd1e      28G      18G      8.5G    67%    /net/grendel/proj-6
    /dev/wd1f      28G      18G      7.8G    70%    /net/grendel/proj-14
    /dev/wd1g      28G     2.3G       24G     8%    /net/grendel/proj-15
    /dev/wd1h      28G      14G       12G    52%    /net/grendel/proj-16
    /dev/wd2e      31G      15G       14G    51%    /net/grendel/proj-17
    /dev/wd2f      31G      13G       16G    44%    /net/grendel/proj-18
    /dev/wd2g      31G     3.2G       26G    10%    /net/grendel/proj-19
    /dev/wd2h      31G      13G       17G    44%    /net/grendel/proj-20
    /dev/wd2i      31G     10.0       20G    33%    /net/grendel/proj-11
    /dev/wd2j      31G     3.8G       26G    12%    /net/grendel/proj-12

For comparison, "df -lm" to see the corresponding numbers.

    grendel:~> df -lm
    Filesystem  1M-blocks     Used     Avail Capacity  Mounted on
    /dev/wd0a          31       22         7    76%    /
    /dev/wd0e         216      195        10    95%    /usr
    /dev/wd0g         990      923        17    98%    /usr/local
    /dev/wd0f         495       31       439     6%    /var
    mfs:220            37        0        35     1%    /tmp
    kernfs              0        0         0   100%    /kern
    procfs              0        0         0   100%    /proc
    /dev/wd0h       17150       40     16252     0%    /net/grendel/u-9
    /dev/wd1e       28170    18022      8739    67%    /net/grendel/proj-6
    /dev/wd1f       28170    18760      8001    70%    /net/grendel/proj-14
    /dev/wd1g       28170     2315     24446     8%    /net/grendel/proj-15
    /dev/wd1h       28170    14015     12747    52%    /net/grendel/proj-16
    /dev/wd2e       31910    15710     14603    51%    /net/grendel/proj-17
    /dev/wd2f       31910    13606     16707    44%    /net/grendel/proj-18
    /dev/wd2g       31910     3291     27023    10%    /net/grendel/proj-19
    /dev/wd2h       31910    13387     16927    44%    /net/grendel/proj-20
    /dev/wd2i       31910    10236     20077    33%    /net/grendel/proj-11
    /dev/wd2j       31910     3920     26394    12%    /net/grendel/proj-12
>How-To-Repeat:
See Description.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: