Switching to [KMGTPE]i prefixes?
Alexander Best
arundel at freebsd.org
Fri Mar 25 00:21:15 UTC 2011
hi there,
i hacked up humanized_number(3) a bit in order to produce the following df(1)
output:
otaku% df -hi; df -Hi
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/ada0p3 217Gi 430Mi 200Gi 0% 6.2k 29M 0% /
devfs 1.0Ki 1.0Ki 0B 100% 0 0 100% /dev
/dev/ufs/varfs 2Gi 286Mi 1.5Gi 16% 27k 254k 10% /var
/dev/ufs/usrfs 890Gi 758Gi 60Gi 93% 1.0M 119M 1% /usr
linprocfs 4.0Ki 4.0Ki 0B 100% 1 0 100% /usr/compat/linux/proc
linsysfs 4.0Ki 4.0Ki 0B 100% 1 0 100% /usr/compat/linux/sys
devfs 1.0Ki 1.0Ki 0B 100% 0 0 100% /usr/compat/linux/dev
linprocfs 4.0Ki 4.0Ki 0B 100% 1 0 100% /usr/local/gentoo-stage3/proc
linsysfs 4.0Ki 4.0Ki 0B 100% 1 0 100% /usr/local/gentoo-stage3/sys
devfs 1.0Ki 1.0Ki 0B 100% 0 0 100% /usr/local/gentoo-stage3/dev
tmpfs 2.0Gi 1.3Mi 2Gi 0% 21 524k 0% /tmp
/dev/cd0 4.2Gi 4.2Gi 0B 100% 0 0 100% /media/dvd
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/ada0p3 233G 451M 214G 0% 6.2k 29M 0% /
devfs 1.0k 1.0k 0B 100% 0 0 100% /dev
/dev/ufs/varfs 2.1G 300M 1.6G 16% 27k 254k 10% /var
/dev/ufs/usrfs 956G 814G 65G 93% 1.0M 119M 1% /usr
linprocfs 4.1k 4.1k 0B 100% 1 0 100% /usr/compat/linux/proc
linsysfs 4.1k 4.1k 0B 100% 1 0 100% /usr/compat/linux/sys
devfs 1.0k 1.0k 0B 100% 0 0 100% /usr/compat/linux/dev
linprocfs 4.1k 4.1k 0B 100% 1 0 100% /usr/local/gentoo-stage3/proc
linsysfs 4.1k 4.1k 0B 100% 1 0 100% /usr/local/gentoo-stage3/sys
devfs 1.0k 1.0k 0B 100% 0 0 100% /usr/local/gentoo-stage3/dev
tmpfs 2.1G 1.3M 2.1G 0% 21 524k 0% /tmp
/dev/cd0 4.5G 4.5G 0B 100% 0 0 100% /media/dvd
any thoughts whether this is something freebsd might benefit from or has it
been decided that the current notion of prefixes mustn't be changed.
cheers.
alex
--
a13x
More information about the freebsd-hackers
mailing list