mount.nfs: support netids in v2/v3 version/transport negotiation
authorChuck Lever <chuck.lever@oracle.com>
Fri, 11 Dec 2009 15:38:50 +0000 (10:38 -0500)
committerSteve Dickson <steved@redhat.com>
Fri, 11 Dec 2009 21:13:16 +0000 (16:13 -0500)
commitbac279da80ae860267e8485d7fe2109096a326e9
treea8bb626f975d90a9ad0fd61e7521ed90942ed378
parent5ba18c11f31a135c6eeab67e820c271f87004793
mount.nfs: support netids in v2/v3 version/transport negotiation

When rewriting mount options during v2/v3 negotiation, restore the
correct netids, rather than protocol names, in the rewritten protocol
options.  If TI-RPC is not available, the traditional behavior is
preserved.

This patch assumes the kernel can recognize a netid, instead of a
protocol name, as the value of the proto= options.

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