]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: (verify) add docs
authorKarel Zak <kzak@redhat.com>
Fri, 23 Sep 2016 11:20:49 +0000 (13:20 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 23 Sep 2016 11:21:02 +0000 (13:21 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt-verify.c
misc-utils/findmnt.8
sys-utils/mount.8

index 6b1b3001124de9fa889522840a61ca82b3105092..a096ddec5c894ac68c8a26046b8f2ca6bfdc94be 100644 (file)
@@ -514,7 +514,7 @@ done:
                fprintf(stderr, P_(", %d warning",   ", %d warnings", vfy.nwarnings), vfy.nwarnings);
                fputc('\n', stderr);
        } else
-               fprintf(stdout, _("\nSuccess, no errors or warnings detected\n"));
+               fprintf(stdout, _("Success, no errors or warnings detected\n"));
 
        return rc != 0 ? rc : vfy.nerrors + parse_nerrors;
 }
index fd26f5e5c0b97ac14bc21d2902a5993a10dcaf88..2a6ed3c243a1bf113c282684988906fdfa125c19 100644 (file)
@@ -233,6 +233,16 @@ Do not print a [/dir] in the SOURCE column for bind mounts or btrfs subvolumes.
 .TP
 .BR \-w , " \-\-timeout \fImilliseconds\fP"
 Specify an upper limit on the time for which \fB\-\-poll\fR will block, in milliseconds.
+.TP
+.BR \-x , " \-\-verify"
+Check mount table content. The default is to verify
+.IR /etc/fstab
+parsability and usability. It's possible to use this option also with \fB\-\-tab\-file\fP.
+It's possible to specify source (device) or target (mountpoint) to filter mount table. The option
+\fB\-\-verbose\fP forces findmnt to print more details.
+.TP
+.BR " \-\-verbose"
+Force findmnt to print more information (\fB\-\-verify\fP only for now).
 .SH EXAMPLES
 .IP "\fBfindmnt \-\-fstab \-t nfs\fP"
 Prints all NFS filesystems defined in
index 17c5eb2d8c601aac4e74c609efb89289c11e2b83..f00af8f35ca275402f5c75c51b2dbd766148f7a1 100644 (file)
@@ -515,6 +515,10 @@ Mount all filesystems (of the given types) mentioned in
 .B noauto
 keyword).  The filesystems are mounted following their order in
 .IR fstab .
+.sp
+Note that it is a bad manner to use \fBmount \-a\fR for
+.IR fstab
+checking. The recommended solution is \fBfindmnt \-\-verify\fR.
 .TP
 .BR \-B , " \-\-bind"
 Remount a subtree somewhere else (so that its contents are available