GNU bug report logs - #16539
df command, possible bug?

Previous Next

Package: coreutils;

Reported by: crubel <at> compro.net

Date: Fri, 24 Jan 2014 20:39:01 UTC

Severity: normal

Done: Bernhard Voelker <mail <at> bernhard-voelker.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: 16539 <at> debbugs.gnu.org, mail <at> bernhard-voelker.de, crubel <at> compro.net
Subject: bug#16539: More details on df command output for you
Date: Sat, 25 Jan 2014 03:19:57 +0000
[Message part 1 (text/plain, inline)]
On 01/24/2014 10:27 PM, Bernhard Voelker wrote:
> tag 16539 notabug
> close
> thanks
> 
> On 01/24/2014 09:47 PM, Curtis Rubel wrote:
>>
>> df command output with no args:
>>
>> only 1 nfs mount is listed

> Just for info: df in openSUSE-13.1 is currently identical to that
> in coreutils-v8.21.
> 
> The above is the result of df suppressing duplicate entries like
> bind mounts.  This filtering is done based on the device number.
> As this example shows, a few exports of directories of the same file
> system from "host" are mounted - yet it's the same file system.

Right. Essentially df is showing storage for available file systems.
Noting that df also has a --total option, it makes sense by default
to not repeat file systems. This can be overridden easily with the
-a option as noted above.

Actually we should in fact be merging more entries!
Notice the following:

>> tmpfs                 4095336     4688   4090648   1% /run
>> tmpfs                 4095336     4688   4090648   1% /var/run
>> tmpfs                 4095336     4688   4090648   1% /var/lock

Hopefully the attached patch addresses this
(and a couple of other test issues).

thanks,
Pádraig.
[df-tmpfs-merge.patch (text/x-patch, attachment)]

This bug report was last modified 10 years and 333 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.