Re: less-wide df(1) output

[email protected] (Greg A. Woods)
Newsgroups gmane.os.netbsd.devel.general
Organization Planix, Inc.; Toronto, Ontario; Canada
Message-ID <[email protected]>
[ 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;            <[email protected]>;           <[email protected]>
Planix, Inc. <[email protected]>; VE3TCP; Secrets of the Weird <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.