diff mbox

rdac.c patch not quite right.

Message ID B2FD678A64EAAD45B089B123FDFC3ED709114205@inbmail01.lsi.com (mailing list archive)
State Deferred, archived
Delegated to: christophe varoqui
Headers show

Commit Message

Chauhan, Vijay Dec. 13, 2010, 9:07 a.m. UTC
None
diff mbox

Patch

--- multipath-tools-orig/libmultipath/checkers/rdac.c	2010-12-06 02:59:40.000000000 -0600
+++ multipath-tools/libmultipath/checkers/rdac.c	2010-12-09 10:34:52.000000000 -0600
@@ -107,7 +107,7 @@  libcheck_check (struct checker * c)
 	if (0 != do_inq(c->fd, 0xC9, &inq, sizeof(struct volume_access_inq))) {
 		ret = PATH_DOWN;
 		goto done;
-	} else if ((inq.PQ_PDT & 0x20) || (inq.PQ_PDT & 0x7f)) {
+	} else if (((inq.PQ_PDT & 0xE0) == 0x20) || (inq.PQ_PDT == 0x7f)) {
 		/* LUN not connected*/
 		ret = PATH_DOWN;
 		goto done;