On 07/05/2012 04:51 PM, Eric Blake wrote:
> On 07/05/2012 08:48 AM, Bernhard Voelker wrote:
>> I stumbled upon this:
>>
>>   $ df -x -h
>>
>> It doesn't honor the -h option because that is taken as the value
>> for the -x option. Is that intended? Should it fail/warn/...?
> 
> Intended that -x consumes the '-h' as its argument, but perhaps could be
> improved to warn if the '-x' argument doesn't match any known file
> system types.  (But NOT fail, as the rate of new file system additions
> is shockingly high even today).

Good idea, but that'd require a bit of re-factoring: the list of
file systems we maintain is in human_fstype() in stat.c.
Well, both (stat and df) handle with file systems, so it'd be
natural to have this list in a central place.
What do you think?

Have a nice day,
Berny

Reply via email to