From: Karel Zak Date: Fri, 23 Sep 2016 11:20:49 +0000 (+0200) Subject: findmnt: (verify) add docs X-Git-Tag: v2.29-rc1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=302419e8da819f7ab4c6c5773b412ea939117291;p=thirdparty%2Futil-linux.git findmnt: (verify) add docs Signed-off-by: Karel Zak --- diff --git a/misc-utils/findmnt-verify.c b/misc-utils/findmnt-verify.c index 6b1b300112..a096ddec5c 100644 --- a/misc-utils/findmnt-verify.c +++ b/misc-utils/findmnt-verify.c @@ -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; } diff --git a/misc-utils/findmnt.8 b/misc-utils/findmnt.8 index fd26f5e5c0..2a6ed3c243 100644 --- a/misc-utils/findmnt.8 +++ b/misc-utils/findmnt.8 @@ -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 diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 17c5eb2d8c..f00af8f35c 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -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