Subject: Re: less-wide df(1) output
To: NetBSD Miscellaneous Technical Discussion List <tech-misc@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-misc
Date: 10/05/2002 13:54:44
[ On Saturday, October 5, 2002 at 19:31:20 (+0200), Manuel Bouyer wrote: ]
> Subject: Re: less-wide df(1) output
>
> On Sat, Oct 05, 2002 at 12:58:41AM -0700, Jeremy C. Reed wrote:
> > What do you think of the following?
> >
> > $ ./df -i
> > Filesystem 512-blocks Used Avail %Used iused ifree %iused Mounted on
> > /dev/wd0a 295618 61082 219754 21% 3013 34425 8% /
> > /dev/wd0e 11508272 1594582 9338276 14% 62886 1383128 4% /usr
> >
> > It saves a few characters and doesn't wrap (standard 80 characters).
> > This could make it more readable in daily report, for example.
>
> I think the inode print fields should be at last one byte larger. 10M inodes
> isn't that much with modern drives. With the default newfs paramters, we have
> 10M inodes for 80G.
The data fields in df should auto-size, and if I'm not mistaken most do
more or less autosize if need be. The trick is to get rid of the
unnecessary space required in some fields in later data lines because of
over-wide fields in the header line, and that's not too hard to do and
is what my changes do.
--
Greg A. Woods
+1 416 218-0098; <g.a.woods@ieee.org>; <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>