Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165646
b: refs/heads/master
c: 16c01b2
h: refs/heads/master
v: v3
  • Loading branch information
Peng Tao authored and Linus Torvalds committed Sep 24, 2009
1 parent 79f4a60 commit dd9c853
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0288b95b432b88f9daf895b526f64beeaca9ac73
refs/heads/master: 16c01b20ae0572d5a1fe8059f1b4c09f79b73cbf
17 changes: 11 additions & 6 deletions trunk/Documentation/filesystems/sharedsubtree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Shared Subtrees
Contents:
1) Overview
2) Features
3) smount command
3) Setting mount states
4) Use-case
5) Detailed semantics
6) Quiz
Expand Down Expand Up @@ -135,10 +135,15 @@ replicas continue to be exactly same.
Binding a unbindable mount is a invalid operation.


3) smount command
3) Setting mount states

Modern mount(8) command is aware of shared subtree features,
so use it instead of the 'smount' command. [source code removed]
The mount command (util-linux package) can be used to set mount
states:

mount --make-shared mountpoint
mount --make-slave mountpoint
mount --make-private mountpoint
mount --make-unbindable mountpoint


4) Use cases
Expand Down Expand Up @@ -209,7 +214,7 @@ replicas continue to be exactly same.
mount --rbind / /view/v3
mount --rbind / /view/v4

and if /usr has a versioning filesystem mounted, than that
and if /usr has a versioning filesystem mounted, then that
mount appears at /view/v1/usr, /view/v2/usr, /view/v3/usr and
/view/v4/usr too

Expand Down Expand Up @@ -249,7 +254,7 @@ replicas continue to be exactly same.

For example:
mount --make-shared /mnt
mount --bin /mnt /tmp
mount --bind /mnt /tmp

The mount at /mnt and that at /tmp are both shared and belong
to the same peer group. Anything mounted or unmounted under
Expand Down

0 comments on commit dd9c853

Please sign in to comment.