diff options
author | Karel Zak <kzak@redhat.com> | 2007-04-03 22:54:47 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2007-04-03 22:54:47 +0200 |
commit | 389fbea536e4308d9475fa2a89e53e188ce8a0e3 (patch) | |
tree | d742913c473f7b4bc53df50f73845ff458d796a9 /mount/mount.8 | |
parent | 939a997de0c761d29fb7530976ca20da4898703a (diff) | |
download | util-linux-old-389fbea536e4308d9475fa2a89e53e188ce8a0e3.tar.gz |
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.8 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mount/mount.8 b/mount/mount.8 index 2cfaae24..870cfd13 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 |