mirror of https://github.com/mkerrisk/man-pages
mount.2: Minor tweaks to NeilBrown's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
0e1a971b94
commit
a422236758
16
man2/mount.2
16
man2/mount.2
|
@ -292,8 +292,8 @@ Since Linux 2.6.16,
|
||||||
.B MS_RDONLY
|
.B MS_RDONLY
|
||||||
can be set or cleared on a per-mount-point basis as well as on
|
can be set or cleared on a per-mount-point basis as well as on
|
||||||
the underlying filesystem.
|
the underlying filesystem.
|
||||||
The mounted filesystem will only be
|
The mounted filesystem will be
|
||||||
writable if neither the filesystem nor the mountpoint are flagged as
|
writable only if neither the filesystem nor the mountpoint are flagged as
|
||||||
read-only.
|
read-only.
|
||||||
.\"
|
.\"
|
||||||
.SS Remounting an existing mount
|
.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.
|
call, except for those parameters that are being deliberately changed.
|
||||||
Another exception is that
|
Another exception is that
|
||||||
.B MS_BIND
|
.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.
|
explicitly desired.
|
||||||
|
.PP
|
||||||
The following
|
The following
|
||||||
.I mountflags
|
.I mountflags
|
||||||
can be changed:
|
can be changed:
|
||||||
|
@ -361,19 +361,19 @@ is specified in
|
||||||
then the remount operation preserves the existing values of these flags
|
then the remount operation preserves the existing values of these flags
|
||||||
(rather than defaulting to
|
(rather than defaulting to
|
||||||
.BR MS_RELATIME ).
|
.BR MS_RELATIME ).
|
||||||
|
.PP
|
||||||
Since Linux 2.6.26, this flag can be used with
|
Since Linux 2.6.26, this flag can be used with
|
||||||
.B MS_BIND
|
.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/
|
.\" See https://lwn.net/Articles/281157/
|
||||||
This is particularly useful for setting or clearing the "read-only"
|
This is particularly useful for setting or clearing the "read-only"
|
||||||
flag on a mount point without changing the underlying filesystem.
|
flag on a mount point without changing the underlying filesystem.
|
||||||
Specifying
|
Specifying
|
||||||
.IR mountflags
|
.IR mountflags
|
||||||
as:
|
as:
|
||||||
|
.PP
|
||||||
MS_REMOUNT | MS_BIND | MS_RDONLY
|
MS_REMOUNT | MS_BIND | MS_RDONLY
|
||||||
|
.PP
|
||||||
will make access through this mountpoint read-only, without affecting
|
will make access through this mountpoint read-only, without affecting
|
||||||
other mount points.
|
other mount points.
|
||||||
.\"
|
.\"
|
||||||
|
|
Loading…
Reference in New Issue