]> git.ipfire.org Git - thirdparty/coreutils.git/commit
df: prioritize mounts nearer the device root
authorDave Chiluk <chiluk@canonical.com>
Mon, 21 Sep 2015 20:04:11 +0000 (15:04 -0500)
committerPádraig Brady <P@draigBrady.com>
Wed, 23 Sep 2015 00:02:44 +0000 (01:02 +0100)
commit3babaf83875ceac896c8dd3a64248e955dfecef9
tree79d404622b9cd89b2825c14195b06b88fd3982c5
parent982c79fa14853040d6bd10ad6f001791408e2441
df: prioritize mounts nearer the device root

In the presence of bind mounts of a device, the 4th "mount root" field
from /proc/self/mountinfo is now considered, so as to prefer mount
points closer to the root of the device.  Note on older systems with
an /etc/mtab file, the source device was listed as the originating
directory, and so this was not an issue.
Details at http://pad.lv/1432871

* src/df.c (filter_mount_list): When deduplicating mount entries,
only prefer sources nearer or at the root of the device, when the
target is nearer the root of the device.
* NEWS: Mention the change in behavior.
NEWS
src/df.c