[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>
This commit is contained in:
Ram Pai
2005-11-07 17:19:07 -05:00
committed by Linus Torvalds
parent 390c684367
commit 07b20889e3
6 changed files with 62 additions and 6 deletions

View File

@@ -17,12 +17,12 @@
#include <linux/spinlock.h>
#include <asm/atomic.h>
#define MNT_NOSUID 1
#define MNT_NODEV 2
#define MNT_NOEXEC 4
#define MNT_NOSUID 0x01
#define MNT_NODEV 0x02
#define MNT_NOEXEC 0x04
#define MNT_PNODE_MASK 0x30 /* propogation flag mask */
struct vfsmount
{
struct vfsmount {
struct list_head mnt_hash;
struct vfsmount *mnt_parent; /* fs we are mounted on */
struct dentry *mnt_mountpoint; /* dentry of mountpoint */