Hello community,

here is the log from the commit of package nfs-utils for openSUSE:Factory 
checked in at 2014-02-19 18:54:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nfs-utils (Old)
 and      /work/SRC/openSUSE:Factory/.nfs-utils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nfs-utils"

Changes:
--------
--- /work/SRC/openSUSE:Factory/nfs-utils/nfs-utils.changes      2014-02-15 
08:14:04.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.nfs-utils.new/nfs-utils.changes 2014-02-19 
18:55:01.000000000 +0100
@@ -1,0 +2,6 @@
+Mon Feb 17 04:40:41 UTC 2014 - nfbr...@suse.com
+
+- udp-fallback.fix: Fix fallback from tcp to udp
+  (bnc#863749)
+
+-------------------------------------------------------------------

New:
----
  udp-fallback.fix

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

Other differences:
------------------
++++++ nfs-utils.spec ++++++
--- /var/tmp/diff_new_pack.ls6TsU/_old  2014-02-19 18:55:02.000000000 +0100
+++ /var/tmp/diff_new_pack.ls6TsU/_new  2014-02-19 18:55:02.000000000 +0100
@@ -81,8 +81,10 @@
 Patch9:         exportfs-exit-with-error-code-if-there-was-any-error.patch
 # PATCH-FIX_UPSTREAM 
exportfs-report-failure-if-asked-to-unexport-somethi.patch nfbr...@suse.de
 Patch10:        exportfs-report-failure-if-asked-to-unexport-somethi.patch
-# PATCH-FIX-UPSTRAM gssd-mount-hang-fix bnc#833543 nfbr...@suse.de
+# PATCH-FIX-UPSTREAM gssd-mount-hang-fix bnc#833543 nfbr...@suse.de
 Patch11:        gssd-mount-hang-fix
+# PATCH-FIX-UPSTREAM udp-fallback.fix bnc#863749 nfbr...@suse.de
+Patch12:        udp-fallback.fix
 Suggests:       python-base
 
 %description
@@ -145,6 +147,7 @@
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
 cp %{S:6} .
 
 %build


++++++ udp-fallback.fix ++++++
From: NeilBrown <ne...@suse.de>
Subject: Fix fallback from tcp to udp
References: bnc#863749

Protocol negotiation in mount.nfs does not correctly negotiate with a
server which only support NFSv3 and UDP.

When mount.nfs attempts an NFSv4 mount and fails with ECONNREFUSED
it does not fall back to NFSv3, as this is not recognised as a
"does not support NFSv4" error.
However ECONNREFUSED is a clear indication that the server doesn't
support TCP, and ipso facto does not support NFSv4.
So ECONNREFUSED should trigger a fallback from v4 to v2/3.

Once we allow that error, NFSv3 is attempted and mount.nfs talks to
rpcbind and discovers that UDP should be used for v3 and the mount
succeeds.

Signed-off-by: NeilBrown <ne...@suse.de>
Reported-by: Carsten Ziepke <kiel...@gmail.com>
---
 utils/mount/stropts.c |    3 +++
 1 file changed, 3 insertions(+)

--- nfs-utils-1.2.8.orig/utils/mount/stropts.c
+++ nfs-utils-1.2.8/utils/mount/stropts.c
@@ -807,6 +807,9 @@ static int nfs_autonegotiate(struct nfsm
                /* Linux servers prior to 2.6.25 may return
                 * EPERM when NFS version 4 is not supported. */
                goto fall_back;
+       case ECONNREFUSED:
+               /* UDP-Only server won't support v4 */
+               goto fall_back;
        default:
                return result;
        }
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to