summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc-utils/findmnt-verify.c2
-rw-r--r--misc-utils/findmnt.810
-rw-r--r--sys-utils/mount.84
3 files changed, 15 insertions, 1 deletions
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