All of lore.kernel.org
 help / color / mirror / Atom feed
* multipath-tools/libcheckers rdac.c
@ 2009-06-24 21:15 bmarzins
  0 siblings, 0 replies; 2+ messages in thread
From: bmarzins @ 2009-06-24 21:15 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	multipath-tools
Branch: 	RHEL5_FC6
Changes by:	bmarzins@sourceware.org	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

--- multipath-tools/libcheckers/Attic/rdac.c	2007/06/18 21:12:54	1.1.2.2
+++ multipath-tools/libcheckers/Attic/rdac.c	2009/06/24 21:15:52	1.1.2.3
@@ -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;
+	}
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* multipath-tools/libcheckers rdac.c
@ 2009-11-04 20:21 bmarzins
  0 siblings, 0 replies; 2+ messages in thread
From: bmarzins @ 2009-11-04 20:21 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	multipath-tools
Branch: 	RHEL5_FC6
Changes by:	bmarzins@sourceware.org	2009-11-04 20:21:43

Modified files:
	libcheckers    : rdac.c 

Log message:
	Fix for bz #531744. In rdac path checker, check if devices are connected,
	and if they are not, mark the path as failed. Already upstream.

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.3&r2=1.1.2.4

--- multipath-tools/libcheckers/Attic/rdac.c	2009/06/24 21:15:52	1.1.2.3
+++ multipath-tools/libcheckers/Attic/rdac.c	2009/11/04 20:21:43	1.1.2.4
@@ -90,7 +90,8 @@
 
 struct volume_access_inq
 {
-	char dontcare0[8];
+	char PQ_PDT;
+	char dontcare0[7];
 	char avtcvp;
 	char dontcare1[39];
 };
@@ -103,6 +104,11 @@
 	if (0 != do_inq(c->fd, 0xC9, &inq, sizeof(struct volume_access_inq))) {
 		MSG(c, MSG_RDAC_DOWN);
 		return PATH_DOWN;
+	} else {
+		if ((inq.PQ_PDT & 0x20) || (inq.PQ_PDT & 0x7f)) {
+			/* LUN not connected*/
+			return PATH_DOWN;
+		}
 	}
 
 	if (inq.avtcvp & 0x1) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-04 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-24 21:15 multipath-tools/libcheckers rdac.c bmarzins
  -- strict thread matches above, loose matches on Subject: below --
2009-11-04 20:21 bmarzins

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.