multipathd can't deal with other devices anyway. Proceeding further with events for other devices just generates log noise.
Based on an idea from Ritika Srivastava <[email protected]>. ("multipath-tools: Skip CHANGE uevent for non-mpath devices"). Signed-off-by: Martin Wilck <[email protected]> --- multipathd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multipathd/main.c b/multipathd/main.c index ff3ecb640487..26632291657f 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -1121,7 +1121,7 @@ uev_trigger (struct uevent * uev, void * trigger_data) * Add events are ignored here as the tables * are not fully initialised then. */ - if (!strncmp(uev->kernel, "dm-", 3)) { + if (!strncmp(uev->kernel, "dm-", 3) && uevent_is_mpath(uev)) { if (!strncmp(uev->action, "change", 6)) { r = uev_add_map(uev, vecs); -- 2.15.1 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
