]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs: support netids in nfs_options2pmap()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 11 Dec 2009 15:37:02 +0000 (10:37 -0500)
committerSteve Dickson <steved@redhat.com>
Fri, 11 Dec 2009 21:13:16 +0000 (16:13 -0500)
commit5ba18c11f31a135c6eeab67e820c271f87004793
tree7a734d40613ef503b8738105faaca260e3394064
parent626010056efb7baa76b08b5e6572720e02e425b4
mount.nfs: support netids in nfs_options2pmap()

When parsing mount options in nfs_options2pmap(), treat the value of
proto= (and mountproto=) as a netid by looking it up in local
netconfig and protocol databases to convert it to a protocol number.
If TI-RPC is not available, the traditional behavior is preserved.

The meaning of the "udp" and "tcp" mount options is not affected by
this change.

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