diff --git a/nfs-utils-1.1.2-mount-eacces.patch b/nfs-utils-1.1.2-mount-eacces.patch new file mode 100644 index 0000000..8c49151 --- /dev/null +++ b/nfs-utils-1.1.2-mount-eacces.patch @@ -0,0 +1,26 @@ +commit 697e28939b7d0a3e0ffe3b6bd516213a55f5a063 +Author: Jeff Layton +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 + +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: diff --git a/nfs-utils.spec b/nfs-utils.spec index 1d21967..caa2699 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser 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 @@ Patch04: nfs-utils-1.1.0-exp-subtree-warn-off.patch 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 @@ This package also contains the mount.nfs and umount.nfs program. %patch05 -p1 %patch06 -p1 %patch07 -p1 +%patch08 -p1 %if %{enablefscache} %patch90 -p1 @@ -255,6 +257,9 @@ fi %attr(4755,root,root) /sbin/umount.nfs4 %changelog +* Mon Apr 14 2008 Steve Dickson 1.1.2-2 +- Make EACCES a non fatal error (bz 439807) + * Tue Mar 25 2008 Steve Dickson 1.1.2-1 - Upgrade to nfs-utils-1.1.2