mount.nfs: Add new API for getting protocol family from netids
authorChuck Lever <chuck.lever@oracle.com>
Fri, 11 Dec 2009 15:44:34 +0000 (10:44 -0500)
committerSteve Dickson <steved@redhat.com>
Fri, 11 Dec 2009 21:13:16 +0000 (16:13 -0500)
commit1f3fae1fb25168aac187ff1881738c8ad53a8763
tree871d3e24f34dc78ddf8da395ca7a246c11f10b45
parent9889b48572e672f4535ca9dafd98d81146b7b834
mount.nfs: Add new API for getting protocol family from netids

Introduce a couple of new functions that extract the protocol family
from the value of the proto= and mountproto= mount options.

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