coreutils
[Top][All Lists]
Advanced

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

Re: Add --dereference option to df


From: Pádraig Brady
Subject: Re: Add --dereference option to df
Date: Thu, 05 Dec 2013 13:26:46 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 12/05/2013 01:21 PM, Bernhard Voelker wrote:
> On 12/04/2013 02:25 PM, Pádraig Brady wrote:
>> Pushed.
> 
> Hi Padraig,
> 
> oops, there was another user-visible change with v8.21-172-g33660b4:
> 
> df now also works better with relative paths to the source
> device, e.g.:
> 
>   $ cd /dev/ && df-8.21 sdb
>   Filesystem     1K-blocks  Used Available Use% Mounted on
>   devtmpfs         1014572    48   1014524   1% /dev
> 
>   $ cd /dev/ && df-new sdb
>   Filesystem     1K-blocks    Used Available Use% Mounted on
>   /dev/sdb        10190136 6039532   3609932  63% /home
> 
> This seems to be valid for POSIX compliance, but contradicts
> our TEXI documentation.  I'd suggest something like this:
> 
> -     If an argument FILE is an absolute name of a disk device node
> +     If an argument FILE resolves to a special file

Good catch.

>    containing a mounted file system, `df' shows the space available on that
>    file system rather than on the file system containing the device node.
> 
> And as this was a user-visible change, it should probably
> be mentioned in the NEWS file.  WDYT?

We might as well adjust the second df item in NEWS to
mention that case too.

thanks,
Pádraig.



reply via email to

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