mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
03e06e68ff
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>
18 lines
397 B
C
18 lines
397 B
C
/*
|
|
* linux/fs/pnode.h
|
|
*
|
|
* (C) Copyright IBM Corporation 2005.
|
|
* Released under GPL v2.
|
|
*
|
|
*/
|
|
#ifndef _LINUX_PNODE_H
|
|
#define _LINUX_PNODE_H
|
|
|
|
#include <linux/list.h>
|
|
#include <linux/mount.h>
|
|
|
|
#define IS_MNT_SHARED(mnt) (mnt->mnt_flags & MNT_SHARED)
|
|
#define CLEAR_MNT_SHARED(mnt) (mnt->mnt_flags &= ~MNT_SHARED)
|
|
|
|
void change_mnt_propagation(struct vfsmount *, int);
|
|
#endif /* _LINUX_PNODE_H */
|