text-based mount: Support protocol family negotiation
authorChuck Lever <chuck.lever@oracle.com>
Fri, 12 Feb 2010 18:38:59 +0000 (13:38 -0500)
committerSteve Dickson <steved@redhat.com>
Fri, 12 Feb 2010 18:41:48 +0000 (13:41 -0500)
commit19c786fc87aba2ecae3072d54ca0a994d5bb997b
treeb875a923cd82a72388c6b8eab8ae8d3892e30ba6
parent0f76458dd0f9a34210e44515a67d55e713a990ce
text-based mount: Support protocol family negotiation

Jeff Layton pointed out that the current negotiation logic in
stropts.c simply doesn't handle the case where a server may have an
IPv6 address and an IPv4 address, but only NFS/IPv4 is supported.
This is typical of all currently deployed Linux servers.

Add support for trying all addresses returned from DNS when
"proto=" is not specified on the command line.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/stropts.c