Skip to contentSkip to conversation

multipath-tools: alua: replace output for reserved return codes

PATCH New Xose Vazquez Perez 1 participant 1 message Oct 26, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: alua: replace output for reserved return codes

Show an explicit error.
The current message could be misread, it is not related to the state of the port.

Cc Benjamin Marzinski <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/prioritizers/alua.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libmultipath/prioritizers/alua.c +1 -1
index 5636974..cfbf7df 100644
@@ -32,7 +32,7 @@ static const char * aas_string[] = {
 	[AAS_STANDBY]		= "standby",
 	[AAS_UNAVAILABLE]	= "unavailable",
 	[AAS_LBA_DEPENDENT]	= "lba dependent",
-	[AAS_RESERVED]		= "invalid/reserved",
+	[AAS_RESERVED]		= "ARRAY BUG: invalid TPGs state!",
 	[AAS_OFFLINE]		= "offline",
 	[AAS_TRANSITIONING]	= "transitioning between states",
 };
Signature · 1 line
2.10.1