aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-12-10 14:59:06 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:05:56 -0500
commit6677d09513e35ac2f38d3a8c8a26fbd7bbcef192 (patch)
treec94931a3cb51c62638fe455afbac19f2edb81efa /fs/nfs/client.c
parentdcecae0ff44dceea7adb6bef5c8eb660fe87a93c (diff)
NFS: Adjust nfs_clone_mount structure to store "struct sockaddr *"
Change the addr field in the nfs_clone_mount structure to store a "struct sockaddr *" to support non-IPv4 addresses in the NFS client. Note this is mostly a cosmetic change, and does not actually allow referrals using IPv6 addresses. The existing referral code assumes that the server returns a string that represents an IPv4 address. This code needs to support hostnames and IPv6 addresses as well as IPv4 addresses, thus it will need to be reorganized completely (to handle DNS resolution in user space). Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 11380601fc78..ba114faf195f 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1094,8 +1094,8 @@ struct nfs_server *nfs4_create_referral_server(struct nfs_clone_mount *data,
1094 /* Get a client representation. 1094 /* Get a client representation.
1095 * Note: NFSv4 always uses TCP, */ 1095 * Note: NFSv4 always uses TCP, */
1096 error = nfs4_set_client(server, data->hostname, 1096 error = nfs4_set_client(server, data->hostname,
1097 (struct sockaddr *)data->addr, 1097 data->addr,
1098 sizeof(*data->addr), 1098 data->addrlen,
1099 parent_client->cl_ipaddr, 1099 parent_client->cl_ipaddr,
1100 data->authflavor, 1100 data->authflavor,
1101 parent_server->client->cl_xprt->prot, 1101 parent_server->client->cl_xprt->prot,