diff options
author | Dave Chiluk <chiluk@canonical.com> | 2015-09-21 15:04:11 -0500 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-09-23 01:02:44 +0100 |
commit | 3babaf83875ceac896c8dd3a64248e955dfecef9 (patch) | |
tree | 79d404622b9cd89b2825c14195b06b88fd3982c5 /NEWS | |
parent | 982c79fa14853040d6bd10ad6f001791408e2441 (diff) | |
download | coreutils-3babaf83875ceac896c8dd3a64248e955dfecef9.tar.xz |
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.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -17,6 +17,9 @@ GNU coreutils NEWS -*- outline -*- base64 no longer supports hex or oct --wrap parameters, thus better supporting decimals with leading zeros. + df now prefers sources towards the root of a device when + eliding duplicate bind mounted entries. + ** Improvements du no longer stats all mount points at startup, only doing so |