]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: document --options-* in man/help
authorVaclav Dolezal <vdolezal@redhat.com>
Thu, 8 Feb 2018 14:46:33 +0000 (15:46 +0100)
committerVaclav Dolezal <vdolezal@redhat.com>
Thu, 8 Feb 2018 14:46:33 +0000 (15:46 +0100)
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
sys-utils/mount.8
sys-utils/mount.c

index c5f7c1408bf10e18f689af0dbb94b961503414ab..3c16a132c0b148683f323fd7d47f77d1babe4f5b 100644 (file)
@@ -677,6 +677,27 @@ and
 sections.
 .RE
 
+.TP
+.BR "\-\-options\-mode " \fImode
+Controls how to combine options from fstab/mtab with options from command line.
+\fImode\fR can be one of
+.BR ignore ", " append ", " prepend " or " replace .
+Default value is \fBprepend\fR.
+
+.TP
+.BR "\-\-options\-source " \fIsource
+Source of default options.
+\fIsource\fR is comma separated list of
+.BR fstab ", " mtab " and " disable .
+\fBdisable\fR disables
+.BR fstab " and " mtab
+and disables \fB\-\-options\-source\-force\fR.
+Default value is \fBfstab,mtab\fR.
+
+.TP
+.BR \-\-options\-source\-force
+Use options from fstab/mtab even if both \fIdevice\fR and \fIdir\fR are specified.
+
 .TP
 .BR \-R , " \-\-rbind"
 Remount a subtree and all possible submounts somewhere else (so that its
index 7707402f2100901bde47a24244a7a20e48d56afc..4ac14b8ab1c37968863969656a90aa3b022346d5 100644 (file)
@@ -413,6 +413,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fprintf(out, _(
        " -n, --no-mtab           don't write to /etc/mtab\n"));
        fprintf(out, _(
+       "     --options-mode <mode>\n"
+       "                         what to do with options loaded from fstab\n"
+       "     --options-source <source>\n"
+       "                         mount options source\n"
+       "     --options-source-force\n"
+       "                         force use of options from fstab/mtab\n"));
+       fprintf(out, _(
        " -o, --options <list>    comma-separated list of mount options\n"
        " -O, --test-opts <list>  limit the set of filesystems (use with -a)\n"
        " -r, --read-only         mount the filesystem read-only (same as -o ro)\n"