mount.2: Minor tweaks to NeilBrown's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-05-21 11:57:29 +02:00
parent 0e1a971b94
commit a422236758
1 changed files with 8 additions and 8 deletions

View File

@ -292,8 +292,8 @@ Since Linux 2.6.16,
.B MS_RDONLY
can be set or cleared on a per-mount-point basis as well as on
the underlying filesystem.
The mounted filesystem will only be
writable if neither the filesystem nor the mountpoint are flagged as
The mounted filesystem will be
writable only if neither the filesystem nor the mountpoint are flagged as
read-only.
.\"
.SS Remounting an existing mount
@ -326,9 +326,9 @@ arguments should match the values used in the original
call, except for those parameters that are being deliberately changed.
Another exception is that
.B MS_BIND
has a different meaning for remount, and it should only be included if
has a different meaning for remount, and it should be included only if
explicitly desired.
.PP
The following
.I mountflags
can be changed:
@ -361,19 +361,19 @@ is specified in
then the remount operation preserves the existing values of these flags
(rather than defaulting to
.BR MS_RELATIME ).
.PP
Since Linux 2.6.26, this flag can be used with
.B MS_BIND
to only modify the per-mount-point flags.
to modify only the per-mount-point flags.
.\" See https://lwn.net/Articles/281157/
This is particularly useful for setting or clearing the "read-only"
flag on a mount point without changing the underlying filesystem.
Specifying
.IR mountflags
as:
.PP
MS_REMOUNT | MS_BIND | MS_RDONLY
.PP
will make access through this mountpoint read-only, without affecting
other mount points.
.\"