df -h display bug

Alexander Kirillov nevis2us at infoline.su
Thu Sep 23 04:16:23 PDT 2004


Note 10.0 in /usr Used column below. Should be 10G

# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad1s1a    126M     62M     54M    53%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad1s1f    252M    1.5M    230M     1%    /tmp
/dev/ad1s1g     35G    10.0     22G    31%    /usr
/dev/ad1s1e    252M    1.9M    230M     1%    /var
procfs         4.0K    4.0K      0B   100%    /proc

Here's df -H output for comparison:

#df -H
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad1s1a    132M     65M     57M    53%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad1s1f    264M    1.5M    242M     1%    /tmp
/dev/ad1s1g     38G     11G     24G    31%    /usr
/dev/ad1s1e    264M    2.0M    241M     1%    /var
procfs         4.1k    4.1k      0B   100%    /proc

df -h in -stable gives 10.0G for the same partition.
Which is kinda clumsy too but less misleading.

# uname -a
FreeBSD  5.3-BETA5 FreeBSD 5.3-BETA5 #1: Thu Sep 23 12:36:20 MSD 2004
nevis@:/usr/obj/usr/src/sys/GENERIC  i386



More information about the freebsd-current mailing list