diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2011-12-26 07:39:13 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 18:20:24 -0500 |
commit | 2d00131acc641b2cb6f0bdefb8c7bdd8fdf7410b (patch) | |
tree | e8351c57f8d12431e7e02f7ff44960dde11800b7 /include | |
parent | 021c68dec8c04c44cb82eb5bbee77028fafe22e8 (diff) |
SUNRPC: send notification events on pipefs sb creation and destruction
They will be used to notify subscribers about pipefs superblock creation and
destruction.
Subcribers will have to create their dentries on passed superblock on mount
event and destroy otherwise.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/rpc_pipe_fs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sunrpc/rpc_pipe_fs.h b/include/linux/sunrpc/rpc_pipe_fs.h index edadc3acf949..d39782ce6c67 100644 --- a/include/linux/sunrpc/rpc_pipe_fs.h +++ b/include/linux/sunrpc/rpc_pipe_fs.h | |||
@@ -43,6 +43,14 @@ RPC_I(struct inode *inode) | |||
43 | return container_of(inode, struct rpc_inode, vfs_inode); | 43 | return container_of(inode, struct rpc_inode, vfs_inode); |
44 | } | 44 | } |
45 | 45 | ||
46 | extern int rpc_pipefs_notifier_register(struct notifier_block *); | ||
47 | extern void rpc_pipefs_notifier_unregister(struct notifier_block *); | ||
48 | |||
49 | enum { | ||
50 | RPC_PIPEFS_MOUNT, | ||
51 | RPC_PIPEFS_UMOUNT, | ||
52 | }; | ||
53 | |||
46 | extern ssize_t rpc_pipe_generic_upcall(struct file *, struct rpc_pipe_msg *, | 54 | extern ssize_t rpc_pipe_generic_upcall(struct file *, struct rpc_pipe_msg *, |
47 | char __user *, size_t); | 55 | char __user *, size_t); |
48 | extern int rpc_queue_upcall(struct inode *, struct rpc_pipe_msg *); | 56 | extern int rpc_queue_upcall(struct inode *, struct rpc_pipe_msg *); |