diff options
author | Ram Pai <linuxram@us.ibm.com> | 2005-11-07 17:19:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 21:18:10 -0500 |
commit | 03e06e68ff76294e53ffa898cb844d2a997b043e (patch) | |
tree | df17444b2c9b89e1eed75e09d46ea36c40ebd1df /fs/pnode.h | |
parent | 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 (diff) |
[PATCH] introduce shared mounts
This creates shared mounts. A shared mount when bind-mounted to some
mountpoint, propagates mount/umount events to each other. All the
shared mounts that propagate events to each other belong to the same
peer-group.
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/pnode.h')
-rw-r--r-- | fs/pnode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/pnode.h b/fs/pnode.h index 33549a3a74e..ab1bdaee4e0 100644 --- a/fs/pnode.h +++ b/fs/pnode.h | |||
@@ -10,5 +10,9 @@ | |||
10 | 10 | ||
11 | #include <linux/list.h> | 11 | #include <linux/list.h> |
12 | #include <linux/mount.h> | 12 | #include <linux/mount.h> |
13 | |||
14 | #define IS_MNT_SHARED(mnt) (mnt->mnt_flags & MNT_SHARED) | ||
15 | #define CLEAR_MNT_SHARED(mnt) (mnt->mnt_flags &= ~MNT_SHARED) | ||
16 | |||
13 | void change_mnt_propagation(struct vfsmount *, int); | 17 | void change_mnt_propagation(struct vfsmount *, int); |
14 | #endif /* _LINUX_PNODE_H */ | 18 | #endif /* _LINUX_PNODE_H */ |