]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs: return error if proto= option specified IPv6 when IPv6 isn't supported
authorJeff Layton <jlayton@redhat.com>
Fri, 12 Feb 2010 19:33:34 +0000 (14:33 -0500)
committerSteve Dickson <steved@redhat.com>
Fri, 12 Feb 2010 19:33:34 +0000 (14:33 -0500)
commit1d4a0cb29ee88257b42d18a22388e1b23cf13bcc
treea50b230506906e6359bb337a202922b6bde0b6a4
parentabba588f7458ab4b29bb05782c0570b71ee8967c
mount.nfs: return error if proto= option specified IPv6 when IPv6 isn't supported

Right now, there's nothing that expressly forbids someone from
specifying proto=tcp6 for instance, even when nfs-utils it built without
IPv6 support. This may not work well if (for instance) they are using
NFSv3, since statd won't support IPv6. Explicitly return an error if
someone specifies an IPv6 proto= or mountproto= option and IPv6 isn't
supported.

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