mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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:
parent
390c684367
commit
07b20889e3
6 changed files with 62 additions and 6 deletions
17
fs/pnode.c
Normal file
17
fs/pnode.c
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue