[dm-devel] [PATCH] [PATCH] libmultipath: return 'ghost' state when port is in transition
Brian Bunker
brian at purestorage.com
Tue Feb 21 20:56:43 UTC 2023
A test unit ready command sent on a path in standby state will not result
in a failed path. The same should be true for a path in the
transitioning state.
Signed-off-by: Brian Bunker brian at purestorage.com
---
libmultipath/checkers/tur.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libmultipath/checkers/tur.c b/libmultipath/checkers/tur.c
index 551dc4f0..fff7987b 100644
--- a/libmultipath/checkers/tur.c
+++ b/libmultipath/checkers/tur.c
@@ -179,10 +179,11 @@ retry:
else if (key == 0x2) {
/* Not Ready */
/* Note: Other ALUA states are either UP or DOWN */
- if( asc == 0x04 && ascq == 0x0b){
+ if (asc == 0x04 &&
+ (ascq == 0x0b || ascq == 0x0a)) {
/*
* LOGICAL UNIT NOT ACCESSIBLE,
- * TARGET PORT IN STANDBY STATE
+ * TARGET PORT IN STANDBY OR TRANSITION STATE
*/
*msgid = CHECKER_MSGID_GHOST;
return PATH_GHOST;
--
More information about the dm-devel
mailing list