diff options
author | Karel Zak | 2012-04-18 10:09:49 +0200 |
---|---|---|
committer | Karel Zak | 2012-04-18 10:09:49 +0200 |
commit | d78907784617b91a5fd609874fd7480119245b4b (patch) | |
tree | e0a9e5e0098672f1edf0e6ad8ecd616e62235325 /sys-utils/mount.8 | |
parent | libmount: add mnt_context_get_options() (diff) | |
download | kernel-qcow2-util-linux-d78907784617b91a5fd609874fd7480119245b4b.tar.gz kernel-qcow2-util-linux-d78907784617b91a5fd609874fd7480119245b4b.tar.xz kernel-qcow2-util-linux-d78907784617b91a5fd609874fd7480119245b4b.zip |
mount: (new) be more pedantic about --make-*
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.8')
-rw-r--r-- | sys-utils/mount.8 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index d18881b2c..5ec121092 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -398,6 +398,15 @@ command (then mount(8) does not read /etc/mtab), then you have to use bind flag .B mount -o remount,ro,bind .I olddir newdir .RE + +Note that +.I remount,ro,bind +will create a read-only mountpoint (VFS entry), but the original filesystem suberblock +will be still writable, it means that the +.I olddir +will be writable, but the +.I newdir +will be read-only. .RE .B The move operation. @@ -434,6 +443,11 @@ unbindable mount is a private mount which cannot be cloned through a bind operation. Detailed semantics is documented in Documentation/filesystems/sharedsubtree.txt file in the kernel source tree. +Note that Linux kernel does not allow to change more propagation flags by one +.B mount (2) +syscall and the flags cannot be mixed with another mount options. It means that +more --make-* options cannot be used together or with another mount options. + .RS .nf .BI "mount --make-shared " mountpoint |