[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7042: df --help does not show `-m' option
From: |
Andreas Schwab |
Subject: |
bug#7042: df --help does not show `-m' option |
Date: |
Fri, 17 Sep 2010 19:07:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Pádraig Brady <address@hidden> writes:
> On 16/09/10 23:34, Paul Eggert wrote:
>> If we're going to make incompatible changes, I suggest that
>> we solve the problem once and for all, by having "df" choose
>> the default blocksize dynamically, based on the size of the
>> output line describing the smallest disk. For example, where
>> "df" currently outputs this:
>>
>> Filesystem 1K-blocks Used Available Use% Mounted on
>> /dev/sda1 11620338002 1437021 11618900981 1% /r/opt
>> /dev/sda2 20971520 1335871 19635650 7% /home/eggert
>>
>> "df" would notice that the smallest file system is between 1GB and 1TB,
>> so it would default to 1 GB blocks, as follows:
>>
>> Filesystem 1GB-blocks Used Available Use% Mounted on
>> /dev/sda1 11900GB 2GB 11898GB 1% /r/opt
>> /dev/sda2 22GB 2GB 21GB 7% /home/eggert
>>
>
> That would break lots of scripts I'd say
> (they should use -P, but many don't).
You could use `df -Bauto' for that.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
bug#7042: df --help does not show `-m' option, Eric Blake, 2010/09/16