summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Sorenson <sorenson@redhat.com>2017-09-14 12:56:53 -0400
committerSteve Dickson <steved@redhat.com>2017-09-14 12:58:04 -0400
commit9f9f9122319ceaf6e1311fb3c296d77ca711604e (patch)
tree91cca5126b4b59f0a810659d8b20327643adfcca
parent2b3ebec1335eac81e9b90a7c95173f857a4b26b1 (diff)
downloadnfs-utils-9f9f9122319ceaf6e1311fb3c296d77ca711604e.tar.gz
nfs-utils-9f9f9122319ceaf6e1311fb3c296d77ca711604e.tar.xz
nfs-utils-9f9f9122319ceaf6e1311fb3c296d77ca711604e.zip
mount: handle EACCES during version negotiation
mount() can return EACCES for servers which permit 4.0 but are configured not to allow 4.1 This is currently only handled by the default case, so these mounts fail without retrying a lower minor. Add handling for EACCES to be retried with a lower minor version. Signed-off-by: Frank Sorenson <sorenson@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mount/stropts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index 1d30d34..4401314 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -862,6 +862,9 @@ check_result:
case EINVAL:
/* A less clear indication that our client
* does not support NFSv4 minor version. */
+ case EACCES:
+ /* An unclear indication that the server
+ * may not support NFSv4 minor version. */
if (mi->version.v_mode != V_SPECIFIC) {
if (mi->version.minor > 0) {
mi->version.minor--;