]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs: force rpcbind queries if options aren't specified
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Jul 2009 20:31:15 +0000 (16:31 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 14 Jul 2009 20:31:15 +0000 (16:31 -0400)
commit3fc80f43ffb272036188d070a01090bbf243b7b5
tree7dcb97be95306f564fc2c6db6f7ab77a5a87ce22
parent5f7313a10b63da796d5cd79c01db1e097d4a6bf1
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>
utils/mount/network.c