[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] df - column alignments with large filesystems

From: Pádraig Brady
Subject: Re: [PATCH] df - column alignments with large filesystems
Date: Sat, 06 Feb 2010 23:06:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100111 Thunderbird/3.0.1

On 06/02/10 15:01, Robert Jenkins wrote:
(First patch submission, apologies for any errors).

As of coreutils 8.4, df's column alignments still get messy with larger
filesystems, 1TB&  up.
This patch adjusts the column spacings to maintain vertical alignment.

I've tried it with various display format options and as far as I can see it
works correctly.
Tested on a Centos 5.4 x86_64 system

Thanks for that.
However I think we need something more general than adding another space.
Consider for example the output from: df -B\'1
One can pipe the output to `column -t` and it's much more readable.
However doing more general alignment within df is still useful I think because:
  Numbers would be aligned right
  Spaces within (translated) column headings would be handled
  No dependence on the non standardized `column` utility

We intend to work on that at some stage, but any ideas/patches are welcome.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]