diff options
author | Ram Pai <linuxram@us.ibm.com> | 2005-11-07 23:19:07 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-08 03:18:10 +0100 |
commit | 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 (patch) | |
tree | 616ac5b7eef3092e105d3b41e7bd2052558b064b /fs/pnode.c | |
parent | [PATCH] making namespace_sem global (diff) | |
download | linux-07b20889e3052c7e77d6a6a54e7e83446eb1ba84.tar.xz linux-07b20889e3052c7e77d6a6a54e7e83446eb1ba84.zip |
[PATCH] beginning of the shared-subtree proper
A private mount does not forward or receive propagation. This patch
provides user the ability to convert any mount to private.
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.c')
-rw-r--r-- | fs/pnode.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/pnode.c b/fs/pnode.c new file mode 100644 index 000000000000..aaa0dffda12a --- /dev/null +++ b/fs/pnode.c @@ -0,0 +1,17 @@ +/* + * linux/fs/pnode.c + * + * (C) Copyright IBM Corporation 2005. + * Released under GPL v2. + * Author : Ram Pai (linuxram@us.ibm.com) + * + */ +#include <linux/namespace.h> +#include <linux/mount.h> +#include <linux/fs.h> +#include "pnode.h" + +void change_mnt_propagation(struct vfsmount *mnt, int type) +{ + mnt->mnt_flags &= ~MNT_PNODE_MASK; +} |