walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
c2cd263
commit 697e28939b7d0a3e0ffe3b6bd516213a55f5a063
c2cd263
Author: Jeff Layton <jlaton@redhat.com>
c2cd263
Date:   Mon Apr 14 09:03:13 2008 -0400
c2cd263
c2cd263
    Change how mount.nfs handles EACCES errors. Currently,
c2cd263
    EACCES is a non-fatal error which means the mount will be
c2cd263
    retied. This caused mounts to hang for 2mins when the client
c2cd263
    does not have permission to access the export. In a strict
c2cd263
    interpretation, the error that should be returned is EPERM, but
c2cd263
    this is not always the case. So due to the fuzzy interpretation,
c2cd263
    of EPERM and EACCES, EACCESS is now a fatal error
c2cd263
    
c2cd263
    Signed-off-by: Steve Dickson <steved@redhat.com>
c2cd263
c2cd263
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
c2cd263
index cadb1f4..cdd610e 100644
c2cd263
--- a/utils/mount/stropts.c
c2cd263
+++ b/utils/mount/stropts.c
c2cd263
@@ -252,7 +252,6 @@ static int set_mandatory_options(const char *type,
c2cd263
 static int is_permanent_error(int error)
c2cd263
 {
c2cd263
 	switch (error) {
c2cd263
-	case EACCES:
c2cd263
 	case ESTALE:
c2cd263
 	case ETIMEDOUT:
c2cd263
 	case ECONNREFUSED: