summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2013-10-17 14:12:34 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-28 15:23:07 -0400
commit800c06a5bf497e0587ba8382a761f31a7825e2cd (patch)
treeb76eeaf2ae9a6fb7669a4e15693fefb7e7f75899 /fs/nfs/nfs4_fs.h
parent32e62b7c3ef095eccbb6a8c96fddf05dacc749df (diff)
downloadlinux-800c06a5bf497e0587ba8382a761f31a7825e2cd.tar.gz
linux-800c06a5bf497e0587ba8382a761f31a7825e2cd.tar.bz2
linux-800c06a5bf497e0587ba8382a761f31a7825e2cd.zip
NFS: Add functions to swap transports during migration recovery
Introduce functions that can walk through an array of returned fs_locations information and connect a transport to one of the destination servers listed therein. Note that NFS minor version 1 introduces "fs_locations_info" which extends the locations array sorting criteria available to clients. This is not supported yet. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 28842abafab4..fcae7289d557 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -217,6 +217,8 @@ rpc_authflavor_t nfs_find_best_sec(struct nfs4_secinfo_flavors *);
struct rpc_clnt *nfs4_create_sec_client(struct rpc_clnt *, struct inode *, struct qstr *);
struct vfsmount *nfs4_submount(struct nfs_server *, struct dentry *,
struct nfs_fh *, struct nfs_fattr *);
+int nfs4_replace_transport(struct nfs_server *server,
+ const struct nfs4_fs_locations *locations);
/* nfs4proc.c */
extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, struct rpc_cred *, struct nfs4_setclientid_res *);