stat: add %m to output the mount point for a file
commitddf6fb8686b1ed6a26d5f1c76a642d0fb5fe7ba7
authorAaron Burgemeister <dajoker@gmail.com>
Fri, 16 Jul 2010 01:54:49 +0000 (15 19:54 -0600)
committerPádraig Brady <P@draigBrady.com>
Fri, 27 Aug 2010 21:16:10 +0000 (27 22:16 +0100)
tree27c8712c7d87a57181506c24f2b2ebb58769646c
parent872f6bb2ba11c61271bf34057a2e950abb3e952e
stat: add %m to output the mount point for a file

* src/find-mount-point.c: A new file refactoring
find_mount_point() out from df.c
* src/find-mount-point.h: Likewise.
* src/df.c: Use the new find-mount-point module.
* src/stat.c (print_stat): Handle the new %m format.
(find_bind_mount): A new function to
return the bind mount for a file if any.
(out_mount_mount): Print the bind mount for a file, or else
the standard mount point given by the find-mount-point module.
(usage): Document the %m format directive.
* src/Makefile.am: Reference the refactored find-mount-point.c
* po/POTFILES.in: Add find_mount_point.c to the translation list
* doc/coreutils.texi (stat invocation): Document %m,
and how it may differ from the mount point that df outputs.
* test/misc/stat-mount: A new test to correlate mount points
output from df and stat.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the new feature
* THANKS: Add the author

Signed-off-by: Pádraig Brady <P@draigBrady.com>
NEWS
THANKS
doc/coreutils.texi
po/POTFILES.in
src/Makefile.am
src/df.c
src/find-mount-point.c [new file with mode: 0644]
src/find-mount-point.h [new file with mode: 0644]
src/stat.c
tests/Makefile.am
tests/misc/stat-mount [new file with mode: 0755]