diff options
author | Jeff Layton | 2013-11-14 13:25:17 +0100 |
---|---|---|
committer | Trond Myklebust | 2013-12-06 19:06:30 +0100 |
commit | 4b9a445e3eeb8bd9278b1ae51c1b3a651e370cd6 (patch) | |
tree | 883070dd3c7eaafc185787649c5591528478eb3b /include/linux/sunrpc/rpc_pipe_fs.h | |
parent | NFSv4: OPEN must handle the NFS4ERR_IO return code correctly (diff) | |
download | kernel-qcow2-linux-4b9a445e3eeb8bd9278b1ae51c1b3a651e370cd6.tar.gz kernel-qcow2-linux-4b9a445e3eeb8bd9278b1ae51c1b3a651e370cd6.tar.xz kernel-qcow2-linux-4b9a445e3eeb8bd9278b1ae51c1b3a651e370cd6.zip |
sunrpc: create a new dummy pipe for gssd to hold open
rpc.gssd will naturally hold open any pipe named */clnt*/gssd that shows
up under rpc_pipefs. That behavior gives us a reliable mechanism to tell
whether it's actually running or not.
Create a new toplevel "gssd" directory in rpc_pipefs when it's mounted.
Under that directory create another directory called "clntXX", and then
within that a pipe called "gssd".
We'll never send an upcall along that pipe, and any downcall written to
it will just return -EINVAL.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/rpc_pipe_fs.h')
-rw-r--r-- | include/linux/sunrpc/rpc_pipe_fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sunrpc/rpc_pipe_fs.h b/include/linux/sunrpc/rpc_pipe_fs.h index a353e0300b54..85f13424647c 100644 --- a/include/linux/sunrpc/rpc_pipe_fs.h +++ b/include/linux/sunrpc/rpc_pipe_fs.h @@ -84,7 +84,8 @@ enum { extern struct dentry *rpc_d_lookup_sb(const struct super_block *sb, const unsigned char *dir_name); -extern void rpc_pipefs_init_net(struct net *net); +extern int rpc_pipefs_init_net(struct net *net); +extern void rpc_pipefs_exit_net(struct net *net); extern struct super_block *rpc_get_sb_net(const struct net *net); extern void rpc_put_sb_net(const struct net *net); |