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

Signed-off-by: Benjamin Marzinski <bmarz...@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

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel

Reply via email to