summaryrefslogtreecommitdiffstats
path: root/support/export/client.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2009-04-15 11:36:07 -0400
committerSteve Dickson <steved@redhat.com>2009-04-15 11:36:07 -0400
commitd9c3935de6c82cea687544c5d45d999297da141d (patch)
treed446ee400afcf18888d0fb7be97b0df4be749e68 /support/export/client.c
parent59189376db057ae08a710cb2b258426230f687d7 (diff)
downloadnfs-utils-d9c3935de6c82cea687544c5d45d999297da141d.tar.gz
nfs-utils-d9c3935de6c82cea687544c5d45d999297da141d.tar.xz
nfs-utils-d9c3935de6c82cea687544c5d45d999297da141d.zip
nfs-utils: query for remote port using rpcbind instead of getaddrinfo
We already have the server's address from the upcall, so we don't really need to look it up again, and querying the local services DB for the port that the remote server is listening on is just plain wrong. Use rpcbind to set the port for the program and version that we were given in the upcall. The exception here is NFSv4. Since NFSv4 mounts are supposed to use a well-defined port then skip the rpcbind query for that and just set the port to the standard one (2049). Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/client.c')
0 files changed, 0 insertions, 0 deletions