From: Jeff Layton Date: Fri, 12 Feb 2010 19:33:34 +0000 (-0500) Subject: mount.nfs: return error if proto= option specified IPv6 when IPv6 isn't supported X-Git-Tag: nfs-utils-1-2-2~4 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=1d4a0cb29ee88257b42d18a22388e1b23cf13bcc;hp=1d4a0cb29ee88257b42d18a22388e1b23cf13bcc 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 Reviewed-by: Chuck Lever Signed-off-by: Steve Dickson ---