aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/sharedsubtree.txt
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2009-09-23 18:56:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-24 10:20:57 -0400
commit16c01b20ae0572d5a1fe8059f1b4c09f79b73cbf (patch)
tree922001d18936f99a9d9f12fc62aa1bb692f7e023 /Documentation/filesystems/sharedsubtree.txt
parent0288b95b432b88f9daf895b526f64beeaca9ac73 (diff)
doc/filesystems: more mount cleanups
Documentation/filesystems/sharedsubtree.txt needs updating because the mount command in util-linux package is well aware of shared subtree features now. The patch also fixes two typos in sharedsubtree.txt. Signed-off-by: Peng Tao <bergwolf@gmail.com> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Miklos Szeredi <miklos@szeredi.hu> Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/filesystems/sharedsubtree.txt')
-rw-r--r--Documentation/filesystems/sharedsubtree.txt17
1 files changed, 11 insertions, 6 deletions
diff --git a/Documentation/filesystems/sharedsubtree.txt b/Documentation/filesystems/sharedsubtree.txt
index b2c1ee5d98fc..23a181074f94 100644
--- a/Documentation/filesystems/sharedsubtree.txt
+++ b/Documentation/filesystems/sharedsubtree.txt
@@ -4,7 +4,7 @@ Shared Subtrees
4Contents: 4Contents:
5 1) Overview 5 1) Overview
6 2) Features 6 2) Features
7 3) smount command 7 3) Setting mount states
8 4) Use-case 8 4) Use-case
9 5) Detailed semantics 9 5) Detailed semantics
10 6) Quiz 10 6) Quiz
@@ -135,10 +135,15 @@ replicas continue to be exactly same.
135 Binding a unbindable mount is a invalid operation. 135 Binding a unbindable mount is a invalid operation.
136 136
137 137
1383) smount command 1383) Setting mount states
139 139
140 Modern mount(8) command is aware of shared subtree features, 140 The mount command (util-linux package) can be used to set mount
141 so use it instead of the 'smount' command. [source code removed] 141 states:
142
143 mount --make-shared mountpoint
144 mount --make-slave mountpoint
145 mount --make-private mountpoint
146 mount --make-unbindable mountpoint
142 147
143 148
1444) Use cases 1494) Use cases
@@ -209,7 +214,7 @@ replicas continue to be exactly same.
209 mount --rbind / /view/v3 214 mount --rbind / /view/v3
210 mount --rbind / /view/v4 215 mount --rbind / /view/v4
211 216
212 and if /usr has a versioning filesystem mounted, than that 217 and if /usr has a versioning filesystem mounted, then that
213 mount appears at /view/v1/usr, /view/v2/usr, /view/v3/usr and 218 mount appears at /view/v1/usr, /view/v2/usr, /view/v3/usr and
214 /view/v4/usr too 219 /view/v4/usr too
215 220
@@ -249,7 +254,7 @@ replicas continue to be exactly same.
249 254
250 For example: 255 For example:
251 mount --make-shared /mnt 256 mount --make-shared /mnt
252 mount --bin /mnt /tmp 257 mount --bind /mnt /tmp
253 258
254 The mount at /mnt and that at /tmp are both shared and belong 259 The mount at /mnt and that at /tmp are both shared and belong
255 to the same peer group. Anything mounted or unmounted under 260 to the same peer group. Anything mounted or unmounted under