<div dir="ltr"><div>During "service multipath-tools start" /sbin/multipath is</div><div>called on dm- devices that are filtered but due to a condition</div><div>conf->dev_type == DEV_DEVNODE in filtering code multipath</div><div>binary wasn't dropping out when hitting a dm- device. This</div><div>was due to the fact that in this case conf->dev_type is</div><div>set to DEV_UEVENT.</div><div><br></div><div>This is causing the logs to be filled with following</div><div>messages:</div><div><br></div><div>multipath: dm-6: failed to get udev uid: Invalid argument</div><div>multipath: dm-6: failed to get sysfs uid: Invalid argument</div><div>multipath: dm-6: failed to get sgio uid: No such file or directory</div><div><br></div><div>This change alows the filtering to happen.</div><div><br></div><div>Cc: Christophe Varoqui <<a href="mailto:christophe.varoqui@opensvc.com">christophe.varoqui@opensvc.com</a>></div><div>Cc: device-mapper development <<a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a>></div><div><br></div><div>Signed-off-by: Dragan Stancevic <<a href="mailto:dragan.stancevic@canonical.com">dragan.stancevic@canonical.com</a>></div><div>---</div><div> multipath/main.c | 3 ++- </div><div> 1 file changed, 2 insertions(+), 1 deletion(-)</div><div><br></div><div>diff --git a/multipath/main.c b/multipath/main.c</div><div>index aadebec..d89298b 100644</div><div>--- a/multipath/main.c</div><div>+++ b/multipath/main.c</div><div>@@ -267,7 +267,8 @@ configure (void)</div><div>        /*</div><div>         * if we have a blacklisted device parameter, exit early</div><div>         */</div><div>-       if (dev && conf->dev_type == DEV_DEVNODE &&</div><div>+       if (dev && (conf->dev_type == DEV_DEVNODE ||</div><div>+                   conf->dev_type == DEV_UEVENT) &&</div><div>            conf->cmd != CMD_REMOVE_WWID &&</div><div>            (filter_devnode(conf->blist_devnode,</div><div>                            conf->elist_devnode, dev) > 0)) {</div><div>-- </div><div>2.1.0</div><div><br></div></div>