GNU bug report logs -
#6990
RFE: more dynamic df output format
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6990 in the body.
You can then email your comments to 6990 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#6990
; Package
coreutils
.
(Mon, 06 Sep 2010 15:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Todd E Thomas <todd_dsm <at> ssiresults.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 06 Sep 2010 15:50:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hey all,
This is not a bug as much as a request to make the df output more
flexible/dynamic and readable.
Basically, there are two types of output now:
*Historic representations of drives:
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 15235072 10537884 3910808 73% /
/dev/hda6 2030736 310444 1615472 17% /var
/dev/hda5 454700584 26684920 404545504 7% /export
/dev/hda1 101086 21551 74316 23% /boot
tmpfs 712740 0 712740 0% /dev/shm
---
*And those with the same output field widths and longer names:
vault://share/linux 960301960 315005712 645296248 33% /mnt/linux
vault://share/fileshare
960301960 315005712 645296248 33% /mnt/fileshare
vault://share/Public 960301960 315005712 645296248 33% /mnt/public
vault://share/win 960301960 315005712 645296248 33% /mnt/win
vault://share/apps 960301960 315005712 645296248 33% /mnt/apps
vault://share/backup 960301960 315005712 645296248 33% /mnt/backup
vault://share/keep-forever
960301960 315005712 645296248 33% /mnt/keep
vault://share/builds 960301960 315005712 645296248 33% /mnt/builds
vault://share/Qdownload/training
960301960 315005712 645296248 33% /mnt/training
This is also true of volume group output:
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_power-lv_root
51606140 8271456 40713244 17% /
tmpfs 2513156 808 2512348 1% /dev/shm
/dev/sda1 495844 64352 405892 14% /boot
/dev/mapper/vg_power-lv_home
94697324 8814368 81072616 10% /home
/dev/sdb1 480719056 166757848 289542008 37% /storage
---
The output could be cleaned up to look like this:
$ df
Filesystem 1K-blocks Used Available Use%
Mounted on
/dev/mapper/vg_power-lv_root 51606140 8271456 40713244 17% /
tmpfs 2513156 808 2512348 1%
/dev/shm
/dev/sda1 495844 64352 405892 14%
/boot
/dev/mapper/vg_power-lv_home 94697324 8814368 81072616 10%
/home
/dev/sdb1 480719056 166757848 289542008 37%
/storage
Slightly more read-able.
---
Here's the requested 'stuff':
This output comes from a 64-bit CentOS 5.5 install with...
$ df --version
df (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund, David MacKenzie, and Paul Eggert.
$ uname -m
x86_64
--
Thanks for the assist,
Todd E Thomas
"It's a frail music knits the world together."
-Robert Dana
Reply sent
to
Pádraig Brady <P <at> draigBrady.com>
:
You have taken responsibility.
(Mon, 06 Sep 2010 18:27:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Todd E Thomas <todd_dsm <at> ssiresults.com>
:
bug acknowledged by developer.
(Mon, 06 Sep 2010 18:27:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 6990-done <at> debbugs.gnu.org (full text, mbox):
tags 6990 + notabug
On 06/09/10 16:17, Todd E Thomas wrote:
> Hey all,
>
> This is not a bug as much as a request to make the df output more
> flexible/dynamic and readable.
>
> vault://share/linux 960301960 315005712 645296248 33% /mnt/linux
> vault://share/fileshare
> 960301960 315005712 645296248 33% /mnt/fileshare
> /dev/mapper/vg_power-lv_root
> 51606140 8271456 40713244 17% /
df -P does what you want I think.
We're also working on better aligning the columns given
variable heading and content widths.
cheers,
Pádraig.
Message #11 received at 6990-done <at> debbugs.gnu.org (full text, mbox):
Close, but still kinda ugly...
# df -hP
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/sysvg-root 49G 16G 31G 34% /
/dev/mapper/sysvg-data 348G 11G 319G 4% /export
/dev/mapper/sysvg-backup 49G 6.0G 40G 14% /backup
/dev/mapper/sysvg-var 4.9G 767M 3.9G 17% /var
/dev/sda1 122M 19M 97M 17% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/sysvg-root
49G 16G 31G 34% /
/dev/mapper/sysvg-data
348G 11G 319G 4% /export
/dev/mapper/sysvg-backup
49G 6.0G 40G 14% /backup
/dev/mapper/sysvg-var
4.9G 767M 3.9G 17% /var
/dev/sda1 122M 19M 97M 17% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
Looking for something a little cleaner, like this:
# df
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/sysvg-root 49G 16G 31G 34% /
/dev/mapper/sysvg-data 348G 11G 319G 4% /export
/dev/mapper/sysvg-backup 49G 6.0G 40G 14% /backup
/dev/mapper/sysvg-var 4.9G 767M 3.9G 17% /var
/dev/sda1 122M 19M 97M 17% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
On 09/06/2010 01:27 PM, Pádraig Brady wrote:
> tags 6990 + notabug
>
> On 06/09/10 16:17, Todd E Thomas wrote:
>> Hey all,
>>
>> This is not a bug as much as a request to make the df output more
>> flexible/dynamic and readable.
>>
>> vault://share/linux 960301960 315005712 645296248 33% /mnt/linux
>> vault://share/fileshare
>> 960301960 315005712 645296248 33% /mnt/fileshare
>> /dev/mapper/vg_power-lv_root
>> 51606140 8271456 40713244 17% /
> df -P does what you want I think.
> We're also working on better aligning the columns given
> variable heading and content widths.
>
> cheers,
> Pádraig.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 30 Oct 2010 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.