summaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorPeng Tao2014-05-30 12:15:57 +0200
committerTom Haynes2015-02-03 20:06:34 +0100
commit1a04c6e1a26a43305fe124a0978a3e4be861af89 (patch)
tree9ea569914b07094f45cf45c45e92a883eec07386 /fs/nfs/internal.h
parentnfs41: move file layout macros to generic pnfs (diff)
downloadkernel-qcow2-linux-1a04c6e1a26a43305fe124a0978a3e4be861af89.tar.gz
kernel-qcow2-linux-1a04c6e1a26a43305fe124a0978a3e4be861af89.tar.xz
kernel-qcow2-linux-1a04c6e1a26a43305fe124a0978a3e4be861af89.zip
nfsv3: introduce nfs3_set_ds_client
The flexfiles layout wants to create DS connection over NFSv3. Add nfs3_set_ds_client to allow that to happen. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 7d7c36ff09fa..7332ba1f693b 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -193,6 +193,10 @@ extern struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
rpc_authflavor_t au_flavor);
extern struct rpc_clnt *nfs4_find_or_create_ds_client(struct nfs_client *,
struct inode *);
+extern struct nfs_client *nfs3_set_ds_client(struct nfs_client *mds_clp,
+ const struct sockaddr *ds_addr, int ds_addrlen,
+ int ds_proto, unsigned int ds_timeo,
+ unsigned int ds_retrans, rpc_authflavor_t au_flavor);
#ifdef CONFIG_PROC_FS
extern int __init nfs_fs_proc_init(void);
extern void nfs_fs_proc_exit(void);