Skip to contentSkip to conversation

Fix handling of device-mapper devices

PATCH In review Hannes Reinecke 1 participant 1 message May 21, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 7/21 Fix handling of device-mapper devices

Device-mapper devices are available only after a 'change' event, so it's quite pointless to check for the 'add' event.

---
 multipathd/main.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
multipathd/main.c +4 -2
index 9975dd8..94b0b95 100644
@@ -648,10 +648,12 @@ uev_trigger (struct uevent * uev, void *
 	lock(vecs->lock);
 
 	/*
-	 * device map add/remove event
+	 * device map event
+	 * Add events are ignored here as the tables
+	 * are not fully initialised then.
 	 */
 	if (!strncmp(devname, "dm-", 3)) {
-		if (!strncmp(uev->action, "add", 3)) {
+		if (!strncmp(uev->action, "change", 6)) {
 			r = uev_add_map(devname, vecs);
 			goto out;
 		}
Signature · 1 line
1.4.3.4