[dm-devel] [PATCH 2/3] multipathd: update dm_info on multipath change events

Benjamin Marzinski bmarzins at redhat.com
Fri Dec 3 01:34:11 UTC 2021


When multipathd gets a change event for a multipath device, the dm info
may have changed, so update it.

Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
---
 multipathd/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/multipathd/main.c b/multipathd/main.c
index 7a57a798..5cb70575 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -818,6 +818,7 @@ ev_add_map (char * dev, const char * alias, struct vectors * vecs)
 		conf = get_multipath_config();
 		reassign_maps = conf->reassign_maps;
 		put_multipath_config(conf);
+		dm_get_info(mpp->alias, &mpp->dmi);
 		if (mpp->wait_for_udev) {
 			mpp->wait_for_udev = 0;
 			if (get_delayed_reconfig() &&
-- 
2.17.2




More information about the dm-devel mailing list