checked in
OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=8
This commit is contained in:
parent
759704c835
commit
c5fb2dfede
@ -1,28 +0,0 @@
|
|||||||
Fall back from v4 to v3 on EPERM.
|
|
||||||
|
|
||||||
When the mount version isn't specified, mount.nfs tries v4 and
|
|
||||||
falls back to v3 if it gets ENOENT.
|
|
||||||
Linux kernels prior to 2.6.25 will return EPERM if there is no
|
|
||||||
v4 export, so fall back in that case too.
|
|
||||||
|
|
||||||
This fixes bnc#557138 where a 2.6.31 or later kernel client gets
|
|
||||||
an error when mounting from a 2.6.24 or earlier server.
|
|
||||||
|
|
||||||
Signed-off-by: NeilBrown <neilb@suse.de>
|
|
||||||
|
|
||||||
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
|
|
||||||
index b595649..68eb82b 100644
|
|
||||||
--- a/utils/mount/stropts.c
|
|
||||||
+++ b/utils/mount/stropts.c
|
|
||||||
@@ -657,8 +657,10 @@ static int nfs_try_mount(struct nfsmount_info *mi)
|
|
||||||
* To deal with legacy Linux servers that don't
|
|
||||||
* automatically export a pseudo root, retry
|
|
||||||
* ENOENT errors using version 3
|
|
||||||
+ * And for Linux servers prior to 2.6.25, retry
|
|
||||||
+ * EPERM
|
|
||||||
*/
|
|
||||||
- if (errno != ENOENT)
|
|
||||||
+ if (errno != ENOENT && errno != EPERM)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Sun Nov 29 22:03:26 UTC 2009 - nfbrown@novell.com
|
|
||||||
|
|
||||||
- nfs-utils-eperm-fallback.patch: mount.nfs
|
|
||||||
tries a v3 mount after a v4 mount fails with ENOENT.
|
|
||||||
Older linux nfsd servers return EPERM, so fall
|
|
||||||
back in that case too. bnc#557138
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 5 03:16:22 UTC 2009 - nfbrown@novell.com
|
Thu Nov 5 03:16:22 UTC 2009 - nfbrown@novell.com
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ Source11: idmapd.conf
|
|||||||
Source12: start-statd
|
Source12: start-statd
|
||||||
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
||||||
Patch1: warn-nfs-udp.patch
|
Patch1: warn-nfs-udp.patch
|
||||||
Patch2: nfs-utils-eperm-fallback.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the NFS utilities. You can tune the number of
|
This package contains the NFS utilities. You can tune the number of
|
||||||
@ -128,7 +127,6 @@ Authors:
|
|||||||
%setup -q -n nfs-utils-%{version} -a 1
|
%setup -q -n nfs-utils-%{version} -a 1
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
|
||||||
cp %{S:6} .
|
cp %{S:6} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user