diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-06-20 15:53:46 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-29 11:46:46 -0400 |
commit | 6663ee7f8187708143255c057bc132bbc84c1894 (patch) | |
tree | 17e47c1be9da2b3e67d74155676fdba92f435efe /include/linux/nfs_xdr.h | |
parent | cdb7ecedec766861e7c4cc35a203518f92023bff (diff) |
NFS: Create an alloc_client rpc_op
This gives NFS v4 a way to set up callbacks and sessions without v2 or
v3 having to do them as well.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r-- | include/linux/nfs_xdr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index e61dc7235d5d..4d62b774ddaf 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -1353,6 +1353,7 @@ struct nfs_renamedata { | |||
1353 | struct nfs_access_entry; | 1353 | struct nfs_access_entry; |
1354 | struct nfs_client; | 1354 | struct nfs_client; |
1355 | struct rpc_timeout; | 1355 | struct rpc_timeout; |
1356 | struct nfs_client_initdata; | ||
1356 | 1357 | ||
1357 | /* | 1358 | /* |
1358 | * RPC procedure vector for NFSv2/NFSv3 demuxing | 1359 | * RPC procedure vector for NFSv2/NFSv3 demuxing |
@@ -1424,6 +1425,7 @@ struct nfs_rpc_ops { | |||
1424 | struct iattr *iattr); | 1425 | struct iattr *iattr); |
1425 | int (*have_delegation)(struct inode *, fmode_t); | 1426 | int (*have_delegation)(struct inode *, fmode_t); |
1426 | int (*return_delegation)(struct inode *); | 1427 | int (*return_delegation)(struct inode *); |
1428 | struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *); | ||
1427 | struct nfs_client * | 1429 | struct nfs_client * |
1428 | (*init_client) (struct nfs_client *, const struct rpc_timeout *, | 1430 | (*init_client) (struct nfs_client *, const struct rpc_timeout *, |
1429 | const char *, rpc_authflavor_t); | 1431 | const char *, rpc_authflavor_t); |