aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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