Subject: Re: bug#6990: RFE: more dynamic df output format

From: Todd E Thomas <[email-masked]>
Date: Fri, 01 Oct 2010 11:09:27 -0500

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.