aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-07-30 16:05:16 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-07-30 19:04:17 -0400
commitab7017a3a0a64b953e091619c30413b3721d925d (patch)
tree1ec947c2794b217d7ead01ee29d8cc5aae4c51f8 /fs/nfs/nfs4client.c
parenta427b9ec4eda8cd6e641ea24541d30b641fc3140 (diff)
NFS: Add version registering framework
This patch adds in the code to track multiple versions of the NFS protocol. I created default structures for v2, v3 and v4 so that each version can continue to work while I convert them into kernel modules. I also removed the const parameter from the rpc_version array so that I can change it at runtime. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r--fs/nfs/nfs4client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index 1c3f13c8e47..769e798b395 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -357,7 +357,7 @@ static int nfs4_set_client(struct nfs_server *server,
357 .hostname = hostname, 357 .hostname = hostname,
358 .addr = addr, 358 .addr = addr,
359 .addrlen = addrlen, 359 .addrlen = addrlen,
360 .rpc_ops = &nfs_v4_clientops, 360 .nfs_mod = &nfs_v4,
361 .proto = proto, 361 .proto = proto,
362 .minorversion = minorversion, 362 .minorversion = minorversion,
363 .net = net, 363 .net = net,
@@ -411,7 +411,7 @@ struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
411 struct nfs_client_initdata cl_init = { 411 struct nfs_client_initdata cl_init = {
412 .addr = ds_addr, 412 .addr = ds_addr,
413 .addrlen = ds_addrlen, 413 .addrlen = ds_addrlen,
414 .rpc_ops = &nfs_v4_clientops, 414 .nfs_mod = &nfs_v4,
415 .proto = ds_proto, 415 .proto = ds_proto,
416 .minorversion = mds_clp->cl_minorversion, 416 .minorversion = mds_clp->cl_minorversion,
417 .net = mds_clp->cl_net, 417 .net = mds_clp->cl_net,