]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: add note about another flags for "remount,bind"
authorKarel Zak <kzak@redhat.com>
Thu, 8 Sep 2016 09:57:34 +0000 (11:57 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 8 Sep 2016 09:57:34 +0000 (11:57 +0200)
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>
sys-utils/mount.8

index 442b6feb3e1fb61f598100bf5e6552d1fd76d2b9..17c5eb2d8c601aac4e74c609efb89289c11e2b83 100644 (file)
@@ -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