summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.8
diff options
context:
space:
mode:
authorKarel Zak2016-09-08 11:57:34 +0200
committerKarel Zak2016-09-08 11:57:34 +0200
commitfa177917209e54ec90a52c6475330b97be82a320 (patch)
tree80f129140b525b1dd4bbe83f34084ecc10f178dd /sys-utils/mount.8
parentlibsmartcols: support LIBSMARTCOLS_DEBUG_PADDING=on (diff)
downloadkernel-qcow2-util-linux-fa177917209e54ec90a52c6475330b97be82a320.tar.gz
kernel-qcow2-util-linux-fa177917209e54ec90a52c6475330b97be82a320.tar.xz
kernel-qcow2-util-linux-fa177917209e54ec90a52c6475330b97be82a320.zip
mount: add note about another flags for "remount,bind"
The man page is talking about read-only bind mounts (-o remount,bind,ro), but this feature also works for another VFS flags like nodev, suid, etc. For example: mount -o remount,bind,noatime /mountpoint is a valid command. Addresses: https://github.com/karelzak/util-linux/issues/342 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.8')
-rw-r--r--sys-utils/mount.87
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8
index 442b6feb3..17c5eb2d8 100644
--- a/sys-utils/mount.8
+++ b/sys-utils/mount.8
@@ -368,7 +368,7 @@ operation, for example:
.B mount \-\-bind
.I olddir newdir
.br
-.B mount \-o remount,ro,bind
+.B mount \-o remount,bind,ro
.I olddir newdir
.RE
@@ -379,8 +379,9 @@ will be writable, but the
.I newdir
will be read-only.
-It's impossible to change mount options recursively
-(for example with \fB-o rbind,ro\fR).
+It's also possible to change nosuid, nodev, noexec, noatime, nodiratime and
+relatime VFS entry flags by "remount,bind" operation. It's impossible to change
+mount options recursively (for example with \fB-o rbind,ro\fR).
.RE
.SS The move operation