diff options
author | Karel Zak | 2017-04-26 17:27:02 +0200 |
---|---|---|
committer | Karel Zak | 2017-04-26 17:27:02 +0200 |
commit | 6dede2f2f7c5271b95c0361abd647af2a731b1dc (patch) | |
tree | 0fb5635e0154879a0d06d97eb7be594f7cce296f /sys-utils/mount.8 | |
parent | umount: fix typo (diff) | |
download | kernel-qcow2-util-linux-6dede2f2f7c5271b95c0361abd647af2a731b1dc.tar.gz kernel-qcow2-util-linux-6dede2f2f7c5271b95c0361abd647af2a731b1dc.tar.xz kernel-qcow2-util-linux-6dede2f2f7c5271b95c0361abd647af2a731b1dc.zip |
libmount: support MS_RDONLY on write-protected devices
This feature is supported by mount(8) only. It seems better move
this code to libmount. The results is more simple mount(8) and the
feature is accessible for all libmount users.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.8')
-rw-r--r-- | sys-utils/mount.8 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 56ccbbd35..bbfe71b75 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -807,8 +807,12 @@ Mount the partition that has the specified Verbose mode. .TP .BR \-w , " \-\-rw" , " \-\-read\-write" -Mount the filesystem read/write. This is the default. A synonym is +Mount the filesystem read/write. The read-write is kernel default. A synonym is .BR "\-o rw" . + +Note that specify \fB\-w\fR on command line forces \fBmount\fR command +to never try read-only mount on write-protected devices. The default is +try read-only if the previous mount syscall with read-write flags failed. .TP .BR \-V , " \-\-version" Display version information and exit. |