summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-06-04 00:09:11 +0100
committerPádraig Brady <P@draigBrady.com>2014-06-24 17:38:46 +0100
commit9d736f8dbfef2b33d431dccf852dace9cfc84d59 (patch)
tree5c3d5ff5b8e9e2d04276f389361007688f54a8e4 /NEWS
parentb7bb499496ff306d87a07ffd68c034f29b97bc37 (diff)
downloadcoreutils-9d736f8dbfef2b33d431dccf852dace9cfc84d59.tar.xz
df: output placeholder values for inaccessible mount points
A system provided mount entry may be unavailable due to TOCTOU race, or if another device has been over-mounted at that position, or due to access permissions. In all these cases output "-" placeholder values rather than either producing an error, or in the over-mount case outputting values for the wrong device. * src/df.c (device_list): A new global list now updated by filter_mount_list(). (filter_mount_list): Adjust to take a parameter as to whether update the global mount list, or only the mount <-> device ID mapping. (get_dev): Use the device ID mapping to ensure we're not outputting stats for the wrong device. Also output placeholder values when we can't access a system specified mount point. (get_all_entries): Set the DEVICE_ONLY param for filter_mount_list(). (devname_for_dev): A new function to search the mount <-> dev mapping. * test/df/skip-duplicates.sh: Adjust accordingly. * NEWS: Mention the bug fixes. Discussed at: http://bugs.gnu.org/16539
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS6
1 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d3c23680c..090254d8a 100644
--- a/NEWS
+++ b/NEWS
@@ -44,8 +44,10 @@ GNU coreutils NEWS -*- outline -*-
[These dd bugs were present in "the beginning".]
- df now elides duplicates for virtual file systems like tmpfs, and will
- display the correct device name for directories mounted multiple times.
+ df now elides duplicates for virtual file systems like tmpfs.
+ Displays the correct device details for points mounted multiple times.
+ Displays placeholder values for inaccessible file systems,
+ rather than error messages or values for the wrong file system.
[These bugs were present in "the beginning".]
du now silently ignores directory cycles introduced with bind mounts.