From 302419e8da819f7ab4c6c5773b412ea939117291 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 23 Sep 2016 13:20:49 +0200 Subject: [PATCH] findmnt: (verify) add docs Signed-off-by: Karel Zak --- misc-utils/findmnt-verify.c | 2 +- misc-utils/findmnt.8 | 10 ++++++++++ sys-utils/mount.8 | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/misc-utils/findmnt-verify.c b/misc-utils/findmnt-verify.c index 6b1b30011..a096ddec5 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 fd26f5e5c..2a6ed3c24 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 17c5eb2d8..f00af8f35 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