bug-coreutils
[Top][All Lists]
Advanced

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

bug#16539: More details on df command output for you


From: Bernhard Voelker
Subject: bug#16539: More details on df command output for you
Date: Fri, 24 Jan 2014 23:27:11 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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
> 
> address@hidden:~> df
> Filesystem          1K-blocks     Used Available Use% Mounted on
> /dev/sda3           173232952 44850568 127310032  27% /
> devtmpfs              4049732       32   4049700   1% /dev
> tmpfs                 4095336       76   4095260   1% /dev/shm
> tmpfs                 4095336     4688   4090648   1% /run
> tmpfs                 4095336        0   4095336   0% /sys/fs/cgroup
> tmpfs                 4095336     4688   4090648   1% /var/run
> tmpfs                 4095336     4688   4090648   1% /var/lock
> /dev/sda1             1035084    45272    920848   5% /boot
> host:/usr/local/bin 110217536 40202928  68990448  37% /usr/local/muse
> address@hidden:~>
> 
> 
> df command with options to show nfs mounted filesystems
> showing all nfs mounts.
> 
> address@hidden:~> df -at nfs
> Filesystem                  1K-blocks     Used Available Use% Mounted 
> on
> host:/usr/local/muse        110217536 40203472  68989896  37% 
> /usr/local/muse
> host:/usr/local/LINUX_FILES 110217536 40203472  68989896  37% 
> /usr/local/LINUX_FILES
> host:/usr/local/3rdparty    110217536 40203472  68989896  37% 
> /usr/local/3rdparty
> address@hidden:~>

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.

We already had a few discussions about this filtering of duplicate
mount entries. For me, this example shows that the current implementation
is not that bad because df's job is to show block and inode usage
statistics about mounted file systems.  When it comes to information
about mount points, then I think findmnt(1) from util-linux is
the right tool.

I'm therefore tagging this bug as "notabug" and mark it as done.
If you or someone else wants to continue this discussion, then
this can of course be done in this thread. And if someone has
the *golden* idea how to solve this problem, then just stand up
and let use know.

Have a nice day,
Berny





reply via email to

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