Stephen McKay <[EMAIL PROTECTED]> write
>
> On Tuesday, 30th November 1999, Warner Losh wrote:
>
> > Filesystem Size Used Avail Capacity Mounted on
> > /dev/da0s1a 62.0M 31.0M 26.1M 54% /
> > /dev/da0s1e 192M 167M 9.22M 95% /usr
> > /dev/da0s1d 61.4M 11.3M 45.2M 20% /var
> > /dev/da0s1f 288M 247M 18.4M 93% /usr/local
> > /dev/da0s1g 2.17G 1.88G 122M 94% /home
> > procfs 4.00K 4.00K 0B 100% /proc
> > /dev/sd1a 990M 376M 534M 41% /jaz
> > /dev/da2s4c 1.94G 1.72G 68.0M 96% /hawk
> > /dev/da3s4a 3.93G 1.95G 1.67G 54% /u
>
> Add a 'df -h' if you like, but to me this looks like an unreadable jumble
> of letters and digits.
Which adds to my logic of not putting this in df itself,
there will always be someone (for many valid reasons) that wants
something else.
I'd suggest going the dfspace route - then users have an
example of something that parses the df output & they can
choose for themselves.
I just checked on the Solaris box here, /etc/dfspace isn't
there... I know it was there on my old ISC 3.2 box; and I
recall making it work on FreeBSD. But, it was copyright AT&T,
so I simply can't post it.
The way it works is to (honoring the block size correctly)
skip the first few lines of df (the normal heading) and then
grab all the following `table' if you will.
With that information in hand, it can format things anyway
it needed.
- Dave Rivers -
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message