diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-01-03 03:55:26 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-01-06 14:58:47 -0500 |
commit | 286d7d6a0cb38d3d4316a1dfea9b0c0fc5a6455b (patch) | |
tree | 844ea8a14db8261a3977ae4d460e227402a4a426 /fs/nfs/inode.c | |
parent | b4454fe1a7cb76a248d0641c9d68a44a1b8d9a1f (diff) |
NFSv4: Remove requirement for machine creds for the "setclientid" operation
Use a cred from the nfs4_client->cl_state_owners list.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 432f41cd75e6..740d3cd40246 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1822,23 +1822,9 @@ static int nfs4_fill_super(struct super_block *sb, struct nfs4_mount_data *data, | |||
1822 | clnt->cl_softrtry = 1; | 1822 | clnt->cl_softrtry = 1; |
1823 | clnt->cl_chatty = 1; | 1823 | clnt->cl_chatty = 1; |
1824 | clp->cl_rpcclient = clnt; | 1824 | clp->cl_rpcclient = clnt; |
1825 | clp->cl_cred = rpcauth_lookupcred(clnt->cl_auth, 0); | ||
1826 | if (IS_ERR(clp->cl_cred)) { | ||
1827 | up_write(&clp->cl_sem); | ||
1828 | err = PTR_ERR(clp->cl_cred); | ||
1829 | clp->cl_cred = NULL; | ||
1830 | goto out_fail; | ||
1831 | } | ||
1832 | memcpy(clp->cl_ipaddr, server->ip_addr, sizeof(clp->cl_ipaddr)); | 1825 | memcpy(clp->cl_ipaddr, server->ip_addr, sizeof(clp->cl_ipaddr)); |
1833 | nfs_idmap_new(clp); | 1826 | nfs_idmap_new(clp); |
1834 | } | 1827 | } |
1835 | if (list_empty(&clp->cl_superblocks)) { | ||
1836 | err = nfs4_init_client(clp); | ||
1837 | if (err != 0) { | ||
1838 | up_write(&clp->cl_sem); | ||
1839 | goto out_fail; | ||
1840 | } | ||
1841 | } | ||
1842 | list_add_tail(&server->nfs4_siblings, &clp->cl_superblocks); | 1828 | list_add_tail(&server->nfs4_siblings, &clp->cl_superblocks); |
1843 | clnt = rpc_clone_client(clp->cl_rpcclient); | 1829 | clnt = rpc_clone_client(clp->cl_rpcclient); |
1844 | if (!IS_ERR(clnt)) | 1830 | if (!IS_ERR(clnt)) |