rpms/nfs-utils/devel nfs-utils-1.1.2-mount-eacces.patch, NONE, 1.1 nfs-utils.spec, 1.167, 1.168

Steve Dickson (steved) fedora-extras-commits at redhat.com
Mon Apr 14 21:50:31 UTC 2008


Author: steved

Update of /cvs/pkgs/rpms/nfs-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14967

Modified Files:
	nfs-utils.spec 
Added Files:
	nfs-utils-1.1.2-mount-eacces.patch 
Log Message:
- Make EACCES a non fatal error (bz 439807)


nfs-utils-1.1.2-mount-eacces.patch:

--- NEW FILE nfs-utils-1.1.2-mount-eacces.patch ---
commit 697e28939b7d0a3e0ffe3b6bd516213a55f5a063
Author: Jeff Layton <jlaton at redhat.com>
Date:   Mon Apr 14 09:03:13 2008 -0400

    Change how mount.nfs handles EACCES errors. Currently,
    EACCES is a non-fatal error which means the mount will be
    retied. This caused mounts to hang for 2mins when the client
    does not have permission to access the export. In a strict
    interpretation, the error that should be returned is EPERM, but
    this is not always the case. So due to the fuzzy interpretation,
    of EPERM and EACCES, EACCESS is now a fatal error
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index cadb1f4..cdd610e 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -252,7 +252,6 @@ static int set_mandatory_options(const char *type,
 static int is_permanent_error(int error)
 {
 	switch (error) {
-	case EACCES:
 	case ESTALE:
 	case ETIMEDOUT:
 	case ECONNREFUSED:


Index: nfs-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/nfs-utils.spec,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -r1.167 -r1.168
--- nfs-utils.spec	25 Mar 2008 19:05:56 -0000	1.167
+++ nfs-utils.spec	14 Apr 2008 21:49:50 -0000	1.168
@@ -2,7 +2,7 @@
 Name: nfs-utils
 URL: http://sourceforge.net/projects/nfs
 Version: 1.1.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 Epoch: 1
 
 # group all 32bit related archs
@@ -30,6 +30,7 @@
 Patch05: nfs-utils-1.1.0-exportfs-open.patch
 Patch06: nfs-utils-1.1.0-exportfs-man-update.patch
 Patch07: nfs-utils-1.1.2-multi-auth-flavours.patch
+Patch08: nfs-utils-1.1.2-mount-eacces.patch
 
 %if %{enablefscache}
 Patch90: nfs-utils-1.1.0-mount-fsc.patch
@@ -88,6 +89,7 @@
 %patch05 -p1
 %patch06 -p1
 %patch07 -p1
+%patch08 -p1
 
 %if %{enablefscache}
 %patch90 -p1
@@ -255,6 +257,9 @@
 %attr(4755,root,root)   /sbin/umount.nfs4
 
 %changelog
+* Mon Apr 14 2008 Steve Dickson <steved at redhat.com>  1.1.2-2
+- Make EACCES a non fatal error (bz 439807)
+
 * Tue Mar 25 2008 Steve Dickson <steved at redhat.com>  1.1.2-1
 - Upgrade to nfs-utils-1.1.2
 




More information about the fedora-extras-commits mailing list