Skip to contentSkip to conversation

multipath: fix exit status of multipath -T

PATCH In review [email protected] 2 participants 2 messages Nov 5, 2021 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath: fix exit status of multipath -T

From: Martin Wilck <[email protected]>

We must set the return value in configure().

---
 multipath/main.c | 1 +
 1 file changed, 1 insertion(+)
multipath/main.c +1 -0
index 65ece83..b2d300e 100644
@@ -560,6 +560,7 @@ configure (struct config *conf, enum mpath_cmds cmd,
 
 		dump_config(conf, hwes, curmp);
 		vector_free(hwes);
+		r = RTVL_OK;
 		goto out;
 	}
 
Signature · 7 lines
2.33.1


--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Fri, Nov 05, 2021 at 12:01:27PM +0100, [email protected] wrote:

From: Martin Wilck <[email protected]>

We must set the return value in configure().

Quoted 18 lines
---
 multipath/main.c | 1 +
 1 file changed, 1 insertion(+)
multipath/main.c +1 -0
index 65ece83..b2d300e 100644
@@ -560,6 +560,7 @@ configure (struct config *conf, enum mpath_cmds cmd,
 
 		dump_config(conf, hwes, curmp);
 		vector_free(hwes);
+		r = RTVL_OK;
 		goto out;
 	}
 
Signature · 1 line
2.33.1

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel