findmnt: (verify) add docs
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
a766fafef3
commit
302419e8da
|
@ -514,7 +514,7 @@ done:
|
||||||
fprintf(stderr, P_(", %d warning", ", %d warnings", vfy.nwarnings), vfy.nwarnings);
|
fprintf(stderr, P_(", %d warning", ", %d warnings", vfy.nwarnings), vfy.nwarnings);
|
||||||
fputc('\n', stderr);
|
fputc('\n', stderr);
|
||||||
} else
|
} 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;
|
return rc != 0 ? rc : vfy.nerrors + parse_nerrors;
|
||||||
}
|
}
|
||||||
|
|
|
@ -233,6 +233,16 @@ Do not print a [/dir] in the SOURCE column for bind mounts or btrfs subvolumes.
|
||||||
.TP
|
.TP
|
||||||
.BR \-w , " \-\-timeout \fImilliseconds\fP"
|
.BR \-w , " \-\-timeout \fImilliseconds\fP"
|
||||||
Specify an upper limit on the time for which \fB\-\-poll\fR will block, in milliseconds.
|
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
|
.SH EXAMPLES
|
||||||
.IP "\fBfindmnt \-\-fstab \-t nfs\fP"
|
.IP "\fBfindmnt \-\-fstab \-t nfs\fP"
|
||||||
Prints all NFS filesystems defined in
|
Prints all NFS filesystems defined in
|
||||||
|
|
|
@ -515,6 +515,10 @@ Mount all filesystems (of the given types) mentioned in
|
||||||
.B noauto
|
.B noauto
|
||||||
keyword). The filesystems are mounted following their order in
|
keyword). The filesystems are mounted following their order in
|
||||||
.IR fstab .
|
.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
|
.TP
|
||||||
.BR \-B , " \-\-bind"
|
.BR \-B , " \-\-bind"
|
||||||
Remount a subtree somewhere else (so that its contents are available
|
Remount a subtree somewhere else (so that its contents are available
|
||||||
|
|
Loading…
Reference in New Issue