[multipathd]
authorChristophe Varoqui <cvaroqui@cl039.(none)>
Tue, 3 May 2005 21:18:55 +0000 (14:18 -0700)
committerChristophe Varoqui <cvaroqui@cl039.(none)>
Tue, 3 May 2005 21:18:55 +0000 (14:18 -0700)
Apply blacklist to uevents too.
Indeed, we don't want too add a checker on /dev/dm-0 when this devmap comes up.

multipathd/main.c

index 3db1e4722ab8390d4c256d3ac5c6976a7c6aa15d..1633e96e0509c20b550ab304fff098325126783c 100644 (file)
@@ -115,6 +115,10 @@ uev_trigger (struct uevent * uev, void * trigger_data)
                goto out;
 
        basename(uev->devpath, devname);
+
+       if (blacklist(conf->blist, devname))
+               goto out;
+
        lock(allpaths->lock);
        pp = find_path_by_dev(allpaths->pathvec, devname);