summaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorChuck Lever2007-12-10 20:59:06 +0100
committerTrond Myklebust2008-01-30 08:05:56 +0100
commit6677d09513e35ac2f38d3a8c8a26fbd7bbcef192 (patch)
treec94931a3cb51c62638fe455afbac19f2edb81efa /fs/nfs/internal.h
parentNFS: Change nfs4_set_client() to accept struct sockaddr * (diff)
downloadkernel-qcow2-linux-6677d09513e35ac2f38d3a8c8a26fbd7bbcef192.tar.gz
kernel-qcow2-linux-6677d09513e35ac2f38d3a8c8a26fbd7bbcef192.tar.xz
kernel-qcow2-linux-6677d09513e35ac2f38d3a8c8a26fbd7bbcef192.zip
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/internal.h')
-rw-r--r--fs/nfs/internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index c8458b168018..75dd4e252cae 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -21,7 +21,8 @@ struct nfs_clone_mount {
struct nfs_fattr *fattr;
char *hostname;
char *mnt_path;
- struct sockaddr_in *addr;
+ struct sockaddr *addr;
+ size_t addrlen;
rpc_authflavor_t authflavor;
};