summaryrefslogtreecommitdiffstats
path: root/utils/mount/stropts.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-07-14 16:31:15 -0400
committerSteve Dickson <steved@redhat.com>2009-07-14 16:31:15 -0400
commit3fc80f43ffb272036188d070a01090bbf243b7b5 (patch)
tree7dcb97be95306f564fc2c6db6f7ab77a5a87ce22 /utils/mount/stropts.c
parent5f7313a10b63da796d5cd79c01db1e097d4a6bf1 (diff)
downloadnfs-utils-3fc80f43ffb272036188d070a01090bbf243b7b5.tar.gz
nfs-utils-3fc80f43ffb272036188d070a01090bbf243b7b5.tar.xz
nfs-utils-3fc80f43ffb272036188d070a01090bbf243b7b5.zip
mount.nfs: force rpcbind queries if options aren't specified
nfs_options2pmap() fills in default values if the passed-in mount options don't specify values. This short-circuits the version, port, and transport negotiation logic in nfs_probe_bothports(). Instead, nfs_options2pmap() should plant zeros in these pmap fields to force nfs_probe_bothports() and nfs_advise_mount() to discover, via rpcbind queries, what the server supports. This fixes some scenarios where umount.nfs fails to connect to servers that don't have all rpcbind ports open, in addition to fixing other corner cases during mount.nfs version/protocol negotiation. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/stropts.c')
0 files changed, 0 insertions, 0 deletions