diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-04-27 13:27:42 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-27 14:10:03 -0400 |
commit | 7e6eb683d260d9325f0d1bd911518d5ed3cb4f0c (patch) | |
tree | 51b22645b2e55cff65acf9feb0d9f43f44ed70d3 /fs/nfs/namespace.c | |
parent | f05d147f7e3cf0d86b3a4bd5603029a7cb109633 (diff) |
NFS: Honor the authflavor set in the clone mount data
The authflavor is set in an nfs_clone_mount structure and passed to the
xdev_mount() functions where it was promptly ignored. Instead, use it
to initialize an rpc_clnt for the cloned server.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r-- | fs/nfs/namespace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index b9a593d056b3..78dde307317f 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c | |||
@@ -257,7 +257,6 @@ struct vfsmount *nfs_d_automount(struct path *path) | |||
257 | struct nfs_fh *fh = NULL; | 257 | struct nfs_fh *fh = NULL; |
258 | struct nfs_fattr *fattr = NULL; | 258 | struct nfs_fattr *fattr = NULL; |
259 | struct rpc_clnt *client; | 259 | struct rpc_clnt *client; |
260 | rpc_authflavor_t flavor = RPC_AUTH_UNIX; | ||
261 | 260 | ||
262 | dprintk("--> nfs_d_automount()\n"); | 261 | dprintk("--> nfs_d_automount()\n"); |
263 | 262 | ||
@@ -285,7 +284,7 @@ struct vfsmount *nfs_d_automount(struct path *path) | |||
285 | if (fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) | 284 | if (fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) |
286 | mnt = nfs_do_refmount(client, path->dentry); | 285 | mnt = nfs_do_refmount(client, path->dentry); |
287 | else | 286 | else |
288 | mnt = nfs_do_submount(path->dentry, fh, fattr, flavor); | 287 | mnt = nfs_do_submount(path->dentry, fh, fattr, client->cl_auth->au_flavor); |
289 | rpc_shutdown_client(client); | 288 | rpc_shutdown_client(client); |
290 | 289 | ||
291 | if (IS_ERR(mnt)) | 290 | if (IS_ERR(mnt)) |