diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-12-10 14:59:28 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:57 -0500 |
commit | 4c5680177012a2b5c0f3fdf58f4375dd84a1da67 (patch) | |
tree | d3d9e599291b4f9b738d02c3913b13541b100487 /fs/nfs/client.c | |
parent | 9412b92772c1d80ea8284583b6aad0260e13515f (diff) |
NFS: Support non-IPv4 addresses in nfs_parsed_mount_data
Replace the nfs_server and mount_server address fields in the
nfs_parsed_mount_data structure with a "struct sockaddr_storage"
instead of a "struct sockaddr_in".
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index ba114faf195f..906613362a56 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -581,7 +581,7 @@ static int nfs_init_server(struct nfs_server *server, | |||
581 | struct nfs_client_initdata cl_init = { | 581 | struct nfs_client_initdata cl_init = { |
582 | .hostname = data->nfs_server.hostname, | 582 | .hostname = data->nfs_server.hostname, |
583 | .addr = (const struct sockaddr *)&data->nfs_server.address, | 583 | .addr = (const struct sockaddr *)&data->nfs_server.address, |
584 | .addrlen = sizeof(data->nfs_server.address), | 584 | .addrlen = data->nfs_server.addrlen, |
585 | .rpc_ops = &nfs_v2_clientops, | 585 | .rpc_ops = &nfs_v2_clientops, |
586 | }; | 586 | }; |
587 | struct nfs_client *clp; | 587 | struct nfs_client *clp; |
@@ -1018,7 +1018,7 @@ struct nfs_server *nfs4_create_server(const struct nfs_parsed_mount_data *data, | |||
1018 | error = nfs4_set_client(server, | 1018 | error = nfs4_set_client(server, |
1019 | data->nfs_server.hostname, | 1019 | data->nfs_server.hostname, |
1020 | (struct sockaddr *)&data->nfs_server.address, | 1020 | (struct sockaddr *)&data->nfs_server.address, |
1021 | sizeof(data->nfs_server.address), | 1021 | data->nfs_server.addrlen, |
1022 | data->client_address, | 1022 | data->client_address, |
1023 | data->auth_flavors[0], | 1023 | data->auth_flavors[0], |
1024 | data->nfs_server.protocol, | 1024 | data->nfs_server.protocol, |