summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
authorWeston Andros Adamson2013-10-18 21:15:17 +0200
committerTrond Myklebust2013-10-28 20:37:43 +0100
commit0f5f49b8b3593309fd3c3a2080a5fd465afdbe16 (patch)
treeab7fd81174f1399b1b0be00967134a1ab981e55b /fs/nfs/nfs4client.c
parentNFS: separate passed security flavs from selected (diff)
downloadkernel-qcow2-linux-0f5f49b8b3593309fd3c3a2080a5fd465afdbe16.tar.gz
kernel-qcow2-linux-0f5f49b8b3593309fd3c3a2080a5fd465afdbe16.tar.xz
kernel-qcow2-linux-0f5f49b8b3593309fd3c3a2080a5fd465afdbe16.zip
NFS: cache parsed auth_info in nfs_server
Cache the auth_info structure in nfs_server and pass these values to submounts. This lays the groundwork for supporting multiple sec= options. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r--fs/nfs/nfs4client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index d65090e5d00f..04131c837f27 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -962,6 +962,7 @@ static int nfs4_init_server(struct nfs_server *server,
/* Initialise the client representation from the mount data */
server->flags = data->flags;
server->options = data->options;
+ server->auth_info = data->auth_info;
if (data->auth_info.flavor_len >= 1)
data->selected_flavor = data->auth_info.flavors[0];