Mailinglist Archive: opensuse-commit (926 mails)

< Previous Next >
commit nfs-utils for openSUSE:Factory
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Wed, 02 Dec 2009 12:37:53 +0100
  • Message-id: <20091202113753.CD011202A9@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package nfs-utils for openSUSE:Factory
checked in at Wed Dec 2 12:37:53 CET 2009.



--------
--- nfs-utils/nfs-utils.changes 2009-11-16 14:23:55.000000000 +0100
+++ /mounts/work_src_done/STABLE/nfs-utils/nfs-utils.changes 2009-11-29
23:03:34.000000000 +0100
@@ -1,0 +2,8 @@
+Sun Nov 29 22:03:26 UTC 2009 - nfbrown@xxxxxxxxxx
+
+- 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
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
nfs-utils-eperm-fallback.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nfs-utils.spec ++++++
--- /var/tmp/diff_new_pack.MrauD5/_old 2009-12-02 12:33:23.000000000 +0100
+++ /var/tmp/diff_new_pack.MrauD5/_new 2009-12-02 12:33:23.000000000 +0100
@@ -27,9 +27,9 @@
Url: http://nfs.sourceforge.net
Summary: Support Utilities for Kernel nfsd
Version: 1.2.1
-Release: 1
+Release: 2
Group: Productivity/Networking/NFS
-License: GPL v2 or later
+License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %fillup_prereq %insserv_prereq
AutoReqProv: on
@@ -49,6 +49,7 @@
Source12: start-statd
Patch0: nfs-utils-1.0.7-bind-syntax.patch
Patch1: warn-nfs-udp.patch
+Patch2: nfs-utils-eperm-fallback.patch

%description
This package contains the NFS utilities. You can tune the number of
@@ -63,7 +64,7 @@
H.J. Lu <hjl@xxxxxxxxxxx>

%package -n nfs-client
-License: GPL v2 or later
+License: GPLv2+
Group: Productivity/Networking/NFS
Summary: Support Utilities for NFS
Obsoletes: nfs-utils < 1.1.0
@@ -84,7 +85,7 @@
H.J. Lu <hjl@xxxxxxxxxxx>

%package -n nfs-kernel-server
-License: GPL v2 or later
+License: GPLv2+
Group: Productivity/Networking/NFS
Summary: Support Utilities for Kernel nfsd
Provides: nfs-utils = %{version}
@@ -107,7 +108,7 @@
H.J. Lu <hjl@xxxxxxxxxxx>

%package -n nfs-doc
-License: GPL v2 or later
+License: GPLv2+
Group: Productivity/Networking/NFS
Summary: Support Utilities for NFS
Obsoletes: nfs-utils < 1.1.0
@@ -127,6 +128,7 @@
%setup -q -n nfs-utils-%{version} -a 1
%patch0 -p1
%patch1 -p1
+%patch2 -p1
cp %{S:6} .

%build


++++++ nfs-utils-eperm-fallback.patch ++++++
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@xxxxxxx>

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;
}
}

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages