aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pnode.h
diff options
context:
space:
mode:
authorRam Pai <linuxram@us.ibm.com>2005-11-07 17:20:48 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 21:18:11 -0500
commita58b0eb8e64b78d9315a5491955e78b1391d42e5 (patch)
tree546f77cb0338c817ef1e34d8ebbc6eaf0e5d6be9 /fs/pnode.h
parenta05964f3917c7c55368c229d7985f8e7c9977e97 (diff)
[PATCH] introduce slave mounts
A slave mount always has a master mount from which it receives mount/umount events. Unlike shared mount the event propagation does not flow from the slave mount to the master. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/pnode.h b/fs/pnode.h
index 9b88ba06794a..b59f0e9fe6b1 100644
--- a/fs/pnode.h
+++ b/fs/pnode.h
@@ -12,10 +12,12 @@
12#include <linux/mount.h> 12#include <linux/mount.h>
13 13
14#define IS_MNT_SHARED(mnt) (mnt->mnt_flags & MNT_SHARED) 14#define IS_MNT_SHARED(mnt) (mnt->mnt_flags & MNT_SHARED)
15#define IS_MNT_SLAVE(mnt) (mnt->mnt_master)
15#define IS_MNT_NEW(mnt) (!mnt->mnt_namespace) 16#define IS_MNT_NEW(mnt) (!mnt->mnt_namespace)
16#define CLEAR_MNT_SHARED(mnt) (mnt->mnt_flags &= ~MNT_SHARED) 17#define CLEAR_MNT_SHARED(mnt) (mnt->mnt_flags &= ~MNT_SHARED)
17 18
18#define CL_EXPIRE 0x01 19#define CL_EXPIRE 0x01
20#define CL_SLAVE 0x02
19#define CL_COPY_ALL 0x04 21#define CL_COPY_ALL 0x04
20#define CL_MAKE_SHARED 0x08 22#define CL_MAKE_SHARED 0x08
21#define CL_PROPAGATION 0x10 23#define CL_PROPAGATION 0x10