mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
[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>
This commit is contained in:
parent
a05964f391
commit
a58b0eb8e6
5 changed files with 60 additions and 4 deletions
|
@ -12,10 +12,12 @@
|
|||
#include <linux/mount.h>
|
||||
|
||||
#define IS_MNT_SHARED(mnt) (mnt->mnt_flags & MNT_SHARED)
|
||||
#define IS_MNT_SLAVE(mnt) (mnt->mnt_master)
|
||||
#define IS_MNT_NEW(mnt) (!mnt->mnt_namespace)
|
||||
#define CLEAR_MNT_SHARED(mnt) (mnt->mnt_flags &= ~MNT_SHARED)
|
||||
|
||||
#define CL_EXPIRE 0x01
|
||||
#define CL_SLAVE 0x02
|
||||
#define CL_COPY_ALL 0x04
|
||||
#define CL_MAKE_SHARED 0x08
|
||||
#define CL_PROPAGATION 0x10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue