Re: Device names too long for df

2004-02-22 Thread Bob Proulx
Thomas Stewart wrote:
 Once more than half a dozen devices are in the system, the readout is less easy
 to read, e.g. 
 $ df -h
 FilesystemSize  Used Avail Use% Mounted on
 /dev/ide/host0/bus0/target0/lun0/part5
19G  6.8G   12G  38% /
 /dev/ide/host0/bus0/target0/lun0/part6
82G   60G   22G  74% /mnt/store
 
 I have made a patch to add a --wide (-w) option to df, so that the
 Filesystem column has more space.

I don't have a system to test this on but I am curious what the -P
output looks like in your case.

`-P'
`--portability'
 Use the POSIX output format.  This is like the default format
 except for the following:

   1. The information about each filesystem is always printed on
  exactly one line; a mount device is never put on a line by
  itself.  This means that if the mount device name is more
  than 20 characters long (e.g., for some network mounts), the
  columns are misaligned.

   2. The labels in the header output line are changed to conform
  to POSIX.

Thanks
Bob


___
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils


Re: df du should honor $BLOCKSIZE

2004-02-22 Thread Paul Eggert
[EMAIL PROTECTED] (Peter Seebach) writes:

  BLOCKSIZEThe size of the block units used by several commands,
   most notably df(1), du(1) and ls(1).

Can you find a complete list of BSD programs that use getbsize,
and which contexts they use it in?

Here's why I'd like to know the details.  OpenBSD 3.2 'ls' treats
BLOCKSIZE differently than coreutils-5.2.0 'ls' treats BLOCK_SIZE.
The latter affects the st_size column, but the former doesn't.  (See
below.)  So, even if we make BLOCK_SIZE default to BLOCKSIZE, the
emulation won't be quite right for ls.  I'm worried that there are
other problems in other programs.

- coreutils 5.2.0 -
$ BLOCK_SIZE=512 ls -sl
total 1072
1072 -rw-rw-r--  2 eggert eggert 1045 Mar 19  2003 113277-05.zip
$ BLOCK_SIZE=1024 ls -sl
total 536
536 -rw-rw-r--  2 eggert eggert 523 Mar 19  2003 113277-05.zip

- OpenBSD 3.2 -
$ BLOCKSIZE=512 /bin/ls -sl
total 1072
1072 -rw-rw-r--  2 eggert  eggert  534737 Mar 19  2003 113277-05.zip
$ BLOCKSIZE=1024 /bin/ls -sl
total 536
 536 -rw-rw-r--  2 eggert  eggert  534737 Mar 19  2003 113277-05.zip


___
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils