summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2012-08-14 09:22:13 +0200
committerJim Meyering <meyering@redhat.com>2012-08-14 11:34:54 +0200
commit46afefaaa8ea95b5eb63a62792774cd18738234a (patch)
tree4d76b669c082df105808d05af462652923d70258 /doc
parenta07dfa9064bf80b4ceea7048c3104495797a6668 (diff)
downloadcoreutils-46afefaaa8ea95b5eb63a62792774cd18738234a.tar.xz
df: fail when the mount list is required but cannot be read
* src/df.c (main): Add conditions to fail when the mount list cannot be read: this includes the cases when a file name argument is given and any of -a, -l, -t or -x is used. * doc/coreutils.texi: Document the additional error conditions. * tests/df/no-mtab-status: Add a new test. * tests/Makefile.am: Reference the new test. * NEWS: Mention the fix.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 516ec7311..744b41a9f 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -10754,6 +10754,11 @@ inspect the exit status of a command like @samp{df -t ext3 -t reiserfs
@var{dir}} to test whether @var{dir} is on a file system of type
@samp{ext3} or @samp{reiserfs}.
+Since the list of file systems (@var{mtab}) is needed to determine the
+file system type, failure includes the cases when that list cannot
+be read and one or more of the options @option{-a}, @option{-l}, @option{-t}
+or @option{-x} is used together with a file name argument.
+
@node du invocation
@section @command{du}: Estimate file space usage