Skip to contentSkip to conversation

: [scsi_dh] Do not use scsilun in rdac hardware handler

PATCH New Chandra Seetharaman 1 participant 1 message Aug 13, 2008 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : [scsi_dh] Do not use scsilun in rdac hardware handler

RDAC storage controller doesn't seem to use the scsilun format. It uses only the last byte for LUN.

---
 drivers/scsi/device_handler/scsi_dh_rdac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/device_handler/scsi_dh_rdac.c +1 -1
Index: linux-2.6.27-rc1/drivers/scsi/device_handler/scsi_dh_rdac.c
===================================================================
@@ -376,7 +376,7 @@ static int get_lun(struct scsi_device *s
 		if (inqp->page_id[0] != 'e' || inqp->page_id[1] != 'd' ||
 		    inqp->page_id[2] != 'i' || inqp->page_id[3] != 'd')
 			return SCSI_DH_NOSYS;
-		h->lun = scsilun_to_int((struct scsi_lun *)inqp->lun);
+		h->lun = inqp->lun[7]; /* Uses only the last byte */
 	}
 	return err;
 }