Skip to contentSkip to conversation

multipath-tools/libcheckers rdac.c

PATCH [email protected] 1 participant 1 message Jun 24, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: [email protected] 2009-06-24 21:15:52

Modified files:
libcheckers : rdac.c

Log message:
Pulled Charlie Brady's patch from dm-devel to make the rdac checker print the right message on changes to PATH_UP and PATH_GHOST.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libcheckers/rdac.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.1.2.2&r2=1.1.2.3

libcheckers/Attic/rdac.c +8 -1
@@ -105,5 +105,12 @@
 		return PATH_DOWN;
 	}
 
-	return ((inq.avtcvp & 0x1) ? PATH_UP : PATH_GHOST);
+	if (inq.avtcvp & 0x1) {
+		MSG(c, MSG_RDAC_UP);
+		return PATH_UP;
+	}
+	else {
+		MSG(c, MSG_RDAC_GHOST);
+		return PATH_GHOST;
+	}
 }