summaryrefslogtreecommitdiffstats
path: root/misc-utils/findmnt.8
diff options
context:
space:
mode:
authorKarel Zak2012-01-20 12:15:37 +0100
committerKarel Zak2012-01-20 12:15:37 +0100
commit2f1ac44b4b938b5a57ff368e29216102b856475c (patch)
tree54d7a07687d27777532609ccac04e0484ca41cee /misc-utils/findmnt.8
parentflock: fix sizeof usage [clang -Wsizeof-pointer-memaccess] (diff)
downloadkernel-qcow2-util-linux-2f1ac44b4b938b5a57ff368e29216102b856475c.tar.gz
kernel-qcow2-util-linux-2f1ac44b4b938b5a57ff368e29216102b856475c.tar.xz
kernel-qcow2-util-linux-2f1ac44b4b938b5a57ff368e29216102b856475c.zip
findmnt: revert --fstab behavior, add --tab-file option
The optional argument for -s, --fstab options (--fstab=file) is not backwardly compatible, because command line with short options (e.g. findmnt -snr) will be interpreted incorrectly. This patch removes support for the optional --fstab argument and introduces a new option --tab-file, for example: findmnt --fstab --tab-file=/etc/fstab.foo Reported-by: Juergen Daubert <jue@jue.li> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/findmnt.8')
-rw-r--r--misc-utils/findmnt.811
1 files changed, 6 insertions, 5 deletions
diff --git a/misc-utils/findmnt.8 b/misc-utils/findmnt.8
index 7f3dc6cee..cd2c47c8c 100644
--- a/misc-utils/findmnt.8
+++ b/misc-utils/findmnt.8
@@ -36,14 +36,12 @@ The command prints all mounted filesystems in the tree-like format by default.
.SH OPTIONS
.IP "\fB\-h, \-\-help\fP"
Print help and exit.
-.IP "\fB\-s, \-\-fstab\fR[\fI=fstab\fR]\fP"
+.IP "\fB\-s, \-\-fstab\fP"
Search in
.IR /etc/fstab
and
.IR /etc/fstab.d .
-The output is in the list format (see --list). Optionally, search the file
-specified by
-.IR fstab .
+The output is in the list format (see --list).
.IP "\fB\-m, \-\-mtab\fP"
Search in
.IR /etc/mtab .
@@ -61,7 +59,10 @@ or
.IR backward .
.IP "\fB\-e, \-\-evaluate\fP"
Convert all tags (LABEL or UUID) to the device names.
-.IP "\fB\-f, \-\-first-only\fP"
+.IP "\fB\-F, \-\-tab\-file \fIpath\fP"
+Search in an alternative file, if used with \fB\-\-fstab\fP, \fB\-\-mtab\fP
+or \fB\-\-kernel\fP then overwrites the default paths.
+.IP "\fB\-f, \-\-first\-only\fP"
Print the first matching filesystem only.
.IP "\fB\-i, \-\-invert\fP"
Invert the sense of matching.