Subject: Re: Suggestion for changes to df(1) and du(1)
To: Simon Burge <simonb@wasabisystems.com>
From: Greywolf <greywolf@starwolf.com>
List: tech-userlevel
Date: 11/18/2001 19:05:29
why not just set BLOCKSIZE to 1M when running df/du?
On Mon, 19 Nov 2001, Simon Burge wrote:
# Date: Mon, 19 Nov 2001 13:53:27 +1100
# From: Simon Burge <simonb@wasabisystems.com>
# To: Tomas Svensson <tsn@gbdev.net>
# Cc: tech-userlevel@netbsd.org
# Subject: Re: Suggestion for changes to df(1) and du(1)
#
# Hi Tomas,
#
# Tomas Svensson wrote:
#
# > Hi,
# >
# > Does anyone have an opinion about adding the flag -h to df(1) and du(1)?
#
# Sounds good. I was just talking about this yesterday with some folks :-)
#
# > It would be to print the statistics in a more "human-readable" and
# > compact style.
# >
# > Example output:
# >
# > Filesystem Size Used Avail Capacity Mounted on
# > /dev/wd0a 97M 31M 61M 33% /
# > /dev/wd0e 97M 4.7M 88M 5% /var
# > /dev/wd0g 2.8G 1.5G 1.2G 54% /usr
# > /dev/wd0f 97M 1.0K 92M 0% /tmp
# > /dev/wd0h 1.8G 297M 1.4G 17% /home
# > /dev/fd0a 1.4M 636K 787K 44% /mnt
# >
# > FreeBSD/OpenBSD and GNU fileutils support this flag already, but does
# > anyone know if this flag would violate POSIX or SUS?
#
# SUSv2 doesn't define -h or -H flags for either of these utilities.
#
# > Patches for df including the manpage included (just a draft), I also
# > added -g (display statistics in gigabyte block counts) just for
# > completeness.
#
# There's also a -H for "metric" k/M/G/T instead of power-of-two values.
#
# Also, are your patches based on the FreeBSD changes, or totally new
# (it'd be good form to credit the changes to their correct origin).
#
# Simon.
# --
# Simon Burge <simonb@wasabisystems.com>
# NetBSD CDs, Support and Service: http://www.wasabisystems.com/
#
--*greywolf;
--
NetBSD: The Power of Code.