diff mbox

multipath-tools/libcheckers rdac.c

Message ID 20091104202144.19493.qmail@sourceware.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

bmarzins@sourceware.org Nov. 4, 2009, 8:21 p.m. UTC
None
diff mbox

Patch

--- 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) {