2018-09-27 22:56:43 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
Date: Fri, 21 Sep 2018 16:03:35 -0500
|
|
|
|
Subject: [PATCH] libmultipath: Don't blank intialized paths
|
|
|
|
|
|
|
|
When pathinfo fails for some likely transient reason, it clears the path
|
|
|
|
wwid, but otherwise returns successfully, to keep the path around but
|
|
|
|
not usable until it gets fully initialized. However, if the path has
|
|
|
|
already been initialized, and pathinfo hits a transient error, it
|
|
|
|
shouldn't clear the wwid.
|
|
|
|
|
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
---
|
|
|
|
libmultipath/discovery.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
|
2018-10-10 05:16:58 +00:00
|
|
|
index 301093f..b267f07 100644
|
2018-09-27 22:56:43 +00:00
|
|
|
--- a/libmultipath/discovery.c
|
|
|
|
+++ b/libmultipath/discovery.c
|
2018-10-10 05:16:58 +00:00
|
|
|
@@ -2004,9 +2004,9 @@ blank:
|
2018-09-27 22:56:43 +00:00
|
|
|
/*
|
|
|
|
* Recoverable error, for example faulty or offline path
|
|
|
|
*/
|
|
|
|
- memset(pp->wwid, 0, WWID_SIZE);
|
|
|
|
pp->chkrstate = pp->state = PATH_DOWN;
|
|
|
|
- pp->initialized = INIT_FAILED;
|
|
|
|
+ if (pp->initialized == INIT_FAILED)
|
|
|
|
+ memset(pp->wwid, 0, WWID_SIZE);
|
|
|
|
|
|
|
|
return PATHINFO_OK;
|
|
|
|
}
|
|
|
|
--
|
|
|
|
2.7.4
|
|
|
|
|