summaryrefslogtreecommitdiffstats
path: root/mount/mount.8
diff options
context:
space:
mode:
authorKarel Zak2007-04-03 22:54:47 +0200
committerKarel Zak2007-04-03 22:54:47 +0200
commit389fbea536e4308d9475fa2a89e53e188ce8a0e3 (patch)
treed742913c473f7b4bc53df50f73845ff458d796a9 /mount/mount.8
parenttests: enable mtablock test when uid=0 only (diff)
downloadkernel-qcow2-util-linux-389fbea536e4308d9475fa2a89e53e188ce8a0e3.tar.gz
kernel-qcow2-util-linux-389fbea536e4308d9475fa2a89e53e188ce8a0e3.tar.xz
kernel-qcow2-util-linux-389fbea536e4308d9475fa2a89e53e188ce8a0e3.zip
mount: shared-subtree support
This patch builds shared-subtree semantics awareness into the mount command. Updates the man page for mount too. The patch also fix a conflict between MS_COMMENT and MS_UNBINDABLE (-- kzak). Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Diffstat (limited to 'mount/mount.8')
-rw-r--r--mount/mount.835
1 files changed, 35 insertions, 0 deletions
diff --git a/mount/mount.8 b/mount/mount.8
index 2cfaae243..870cfd13e 100644
--- a/mount/mount.8
+++ b/mount/mount.8
@@ -131,6 +131,41 @@ to another place. The call is
.B "mount --move olddir newdir"
.RE
+Since Linux 2.6.15 it is possible to mark a mount and its submounts as shared,
+private, slave or unbindable. A shared mount provides ability to create mirrors
+of that mount such that mounts and umounts within any of the mirrors propagate
+to the other mirror. A slave mount receives propagation from its master, but
+any not vice-versa. A private mount carries no propagation abilities. A
+unbindable mount is a private mount which cannot cloned through a bind
+operation. Detailed semantics is documented in Documentation/sharedsubtree.txt
+file in the kernel source tree.
+.RS
+.br
+.B "mount --make-shared mountpoint"
+.br
+.B "mount --make-slave mountpoint"
+.br
+.B "mount --make-private mountpoint"
+.br
+.B "mount --make-unbindable mountpoint"
+.br
+.RE
+
+The following commands allows one to recursively change the type of all the
+mounts under a given mountpoint.
+.RS
+.br
+.B "mount --make-rshared mountpoint"
+.br
+.B "mount --make-rslave mountpoint"
+.br
+.B "mount --make-rprivate mountpoint"
+.br
+.B
+"mount --make-runbindable mountpoint"
+.br
+.RE
+
The
.I proc
file system is not associated with a special device, and when