projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bff038
)
SUNRPC: create RPC pipefs superblock per network namespace context
author
Stanislav Kinsbursky
<
[email protected]
>
Mon, 26 Dec 2011 12:38:56 +0000
(15:38 +0300)
committer
Trond Myklebust
<
[email protected]
>
Tue, 31 Jan 2012 23:20:23 +0000
(18:20 -0500)
This is the initial step of RPC pipefs virtualization. It changes nothing to
current pipefs behaviour except that mount of pipefs in other than init_net
network namespace context will provide only root tree. No other dentries will
be visible.
Signed-off-by: Stanislav Kinsbursky <
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
net/sunrpc/rpc_pipe.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/rpc_pipe.c
b/net/sunrpc/rpc_pipe.c
index 8e3397fc0a7deef7375553397d869821b7d3a040..e32e6b8c006d641d3b3b0772f64645ad2d75515e 100644
(file)
--- a/
net/sunrpc/rpc_pipe.c
+++ b/
net/sunrpc/rpc_pipe.c
@@
-993,6
+993,7
@@
rpc_fill_super(struct super_block *sb, void *data, int silent)
{
struct inode *inode;
struct dentry *root;
+ struct net *net = data;
sb->s_blocksize = PAGE_CACHE_SIZE;
sb->s_blocksize_bits = PAGE_CACHE_SHIFT;
@@
-1017,7
+1018,7
@@
static struct dentry *
rpc_mount(struct file_system_type *fs_type,
int flags, const char *dev_name, void *data)
{
- return mount_
single(fs_type, flags, data
, rpc_fill_super);
+ return mount_
ns(fs_type, flags, current->nsproxy->net_ns
, rpc_fill_super);
}
static struct file_system_type rpc_pipe_fs_type = {