- Make EACCES a non fatal error (bz 439807)
This commit is contained in:
parent
7449abe19f
commit
c2cd263df6
26
nfs-utils-1.1.2-mount-eacces.patch
Normal file
26
nfs-utils-1.1.2-mount-eacces.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
commit 697e28939b7d0a3e0ffe3b6bd516213a55f5a063
|
||||||
|
Author: Jeff Layton <jlaton@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@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:
|
@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser
|
|||||||
Name: nfs-utils
|
Name: nfs-utils
|
||||||
URL: http://sourceforge.net/projects/nfs
|
URL: http://sourceforge.net/projects/nfs
|
||||||
Version: 1.1.2
|
Version: 1.1.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
# group all 32bit related archs
|
# 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
|
Patch05: nfs-utils-1.1.0-exportfs-open.patch
|
||||||
Patch06: nfs-utils-1.1.0-exportfs-man-update.patch
|
Patch06: nfs-utils-1.1.0-exportfs-man-update.patch
|
||||||
Patch07: nfs-utils-1.1.2-multi-auth-flavours.patch
|
Patch07: nfs-utils-1.1.2-multi-auth-flavours.patch
|
||||||
|
Patch08: nfs-utils-1.1.2-mount-eacces.patch
|
||||||
|
|
||||||
%if %{enablefscache}
|
%if %{enablefscache}
|
||||||
Patch90: nfs-utils-1.1.0-mount-fsc.patch
|
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
|
%patch05 -p1
|
||||||
%patch06 -p1
|
%patch06 -p1
|
||||||
%patch07 -p1
|
%patch07 -p1
|
||||||
|
%patch08 -p1
|
||||||
|
|
||||||
%if %{enablefscache}
|
%if %{enablefscache}
|
||||||
%patch90 -p1
|
%patch90 -p1
|
||||||
@ -255,6 +257,9 @@ fi
|
|||||||
%attr(4755,root,root) /sbin/umount.nfs4
|
%attr(4755,root,root) /sbin/umount.nfs4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 14 2008 Steve Dickson <steved@redhat.com> 1.1.2-2
|
||||||
|
- Make EACCES a non fatal error (bz 439807)
|
||||||
|
|
||||||
* Tue Mar 25 2008 Steve Dickson <steved@redhat.com> 1.1.2-1
|
* Tue Mar 25 2008 Steve Dickson <steved@redhat.com> 1.1.2-1
|
||||||
- Upgrade to nfs-utils-1.1.2
|
- Upgrade to nfs-utils-1.1.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user