]> git.ipfire.org Git - thirdparty/coreutils.git/commit
df: report correct device in presence of eclipsed mounts
authorPádraig Brady <P@draigBrady.com>
Tue, 24 Jun 2014 14:34:39 +0000 (15:34 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 25 Jun 2014 08:55:12 +0000 (09:55 +0100)
commitd71c12f1e4e165c7da59989b49ded2805b7977cc
tree51dc1d73c2d81c7d28feddc6fe6c535fca829897
parent828801a174de8fa6e492f311210c37394f13b30f
df: report correct device in presence of eclipsed mounts

* src/df.c (last_device_for_mount): A new function to identify
the last device mounted for a mount point.
(get_disk): Use the above to discard mount entries for a device,
where a later mount entry uses a different device name than
that of the user specified device.
* tests/df/over-mount-device.sh: A new root test.
* tests/local.mk: Reference the new test.
* NEWS: Reword for all these related recent fixes.
Discussed at: http://bugs.gnu.org/16539#69
NEWS
src/df.c
tests/df/over-mount-device.sh [new file with mode: 0755]
tests/local.mk