Subject: Re: bin/2893: Prettier df listings with long nfs mounts.
To: None <ragge@my40.sm.luth.se>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: netbsd-bugs
Date: 10/26/1996 12:41:19
On Sat, 26 Oct 1996 13:19:13 +0200 (CEST) 
 Anders Magnusson <ragge@my40.sm.luth.se> wrote:

 > >Synopsis:       Prettier df listings with long nfs mounts.

 > This looks nicer if the lines splits when long mounts (as SunOS):
 > 
 > my40:/usr/src/bin/df >./df
 > Filesystem         512-blocks     Used    Avail Capacity  Mounted on
 > /dev/sd0a               56542    27424    23462    54%    /
 > /dev/sd0d               56542       12    50874     0%    /tmp
 > /dev/sd0e               56542     2408    48478     5%    /var
 > /dev/sd0g              835166   598568   194838    75%    /usr
 > my28:/e/local         1168204   904378   147006    86%    /usr/local
 > my28:/var/spool/mail   576030   209562   308866    40%    /var/spool/mail
 > my3:/SunOS4/usr/local 3846624  2405640  1056324    69%    /emul/sunos/usr/local
 > my3:/SunOS4/usr/local 3846624  2405640  1056324    69%    /tomat
 > basil.cdt:/usr/local  3936132  3387828   154704    96%    /emul/svr4/usr/local
 > my21:/export/u20      1763038  1271788   314948    80%    /amd/my21/export/u20
 > ftp.luth.se:/pub/FreeBSD/distfiles
 >                       1635228  1252988   382240    77%    /mnt

I agree that this looks much nicer... but it's harder for scripts to
parse... For example, a friend of mine wrote a little tcl script
that parses df output, and generates a bar graph showing percentage
of space used.  Having the line broken up like that means that you
can't just say `column N' ...

I'm not saying I oppose the change, but there is a trade-off to be considered
before something like this is committed to the tree.

Ciao.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939