File 0001-mount.cifs-retry-mount-on-EINPROGRESS.patch of Package cifs-utils.39288

From 95778eb639cfa4511e07d534fc83d887ff29bb38 Mon Sep 17 00:00:00 2001
From: Enzo Matsumiya <ematsumiya@suse.de>
Date: Tue, 3 Jun 2025 12:07:36 -0300
Subject: [PATCH 1/2] mount.cifs: retry mount on -EINPROGRESS

cifs.ko mount might return -EINPROGRESS even for blocking sockets.

This patch makes mount.cifs retry mount when DNS resolution
returns >1 IP addresses for a server and such error occurs.

It's ok to retry because cifs.ko will consider it a hard error and abort
the mount anyway, so there's no risk of duplicate mounts.

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
---
 mount.cifs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mount.cifs.c b/mount.cifs.c
index 6edd96e..1923913 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -2373,6 +2373,7 @@ mount_retry:
 		switch (errno) {
 		case ECONNREFUSED:
 		case EHOSTUNREACH:
+		case EINPROGRESS:
 			if (currentaddress) {
 				fprintf(stderr, "mount error(%d): could not connect to %s",
 					errno, currentaddress);
-- 
2.47.0

openSUSE Build Service is sponsored by