{bb} Fedora 7 & BB 1.9i: misaligned df output
Marcin Struzak <[email protected]> Thu, 05 Jul 2007 17:24:01 -0700
| Newsgroups | gmane.network.bb4.general |
|---|---|
| Message-ID | <[email protected]> |
On a system with BB 1.9i on Fedora 7, the df command used in
bin/bb-disk.sh produces an incorrect result. That particular system
utilizes the LVM, and yields very long mount point names, which are by
default (for alignment purposes) listed on two lines, e.g.:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-root
1967952 242580 1623792 13% /
/dev/sda1 101086 12266 83601 13% /boot
tmpfs 62700 0 62700 0% /dev/shm
/dev/mapper/VolGroup00-var
2983664 223316 2606340 8% /var
/dev/mapper/VolGroup00-usr
3967680 2187136 1575744 59% /usr
The way bb-disk.sh works (essentially filters on ^/dev) results in a
list like this:
/dev/mapper/VolGroup00-root
/dev/sda1 101086 12266 83601 13% /boot
/dev/mapper/VolGroup00-var
/dev/mapper/VolGroup00-usr
This can be fixed with the option -P (Posix compatibility output), but
now the columns are misaligned (can be fixed with cleverly crafted
cut/sed/awk/printf):
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/VolGroup00-root 1967952 242580 1623792 13% /
/dev/sda1 101086 12266 83601 13% /boot
tmpfs 62700 0 62700 0% /dev/shm
/dev/mapper/VolGroup00-var 2983664 223316 2606340 8% /var
/dev/mapper/VolGroup00-usr 3967680 2187136 1575744 59% /usr
When will that be addressed in the distribution?
Thanks.
--Marcin
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:[email protected] with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.