Skip to contentSkip to conversation

cciss updates [1 of 2]

PATCH [email protected] 3 participants 3 messages Mar 25, 2004 Block layer

lore
Share & tools
lore
#0 lore raw

Please consider this change for inclusion in the 2.4 kernel.

This change is required to support the new MSA30 storage enclosure. If you do a SCSI inquiry to a SATA disk bad things happen. This patch prevents the inquiry from going to SATA disks.

 cciss_scsi.c |    2 ++
 1 files changed, 2 insertions(+)

------------------------------------------------------------------------------

drivers/block/cciss_scsi.c +2 -0
diff -burN lx2425.orig/drivers/block/cciss_scsi.c lx2425/drivers/block/cciss_scsi.c
@@ -589,6 +589,8 @@
 
 	for(i=0; i<num_luns; i++) {
 		/* Execute an inquiry to figure the device type */
+		/* Skip over masked devices */
+		if (ld_buff->LUN[i][3] & 0xC0) continue;
 		memset(inq_buff, 0, sizeof(InquiryData_struct));
 		memcpy(scsi3addr, ld_buff->LUN[i], 8); /* ugly... */
 		return_code = sendcmd(CISS_INQUIRY, cntl_num, inq_buff,
#1 lore raw
Quoted 1 line · On Thu, 2004-03-25 at 16:36, [email protected] wrote:

Please consider this change for inclusion in the 2.4 kernel.

do you have a matching 2.6 patch ?

#2 lore raw
In reply to [email protected]
Quoted 4 lines · [email protected] wrote:

Please consider this change for inclusion in the 2.4 kernel.

This change is required to support the new MSA30 storage enclosure.
If you do a SCSI inquiry to a SATA disk bad things happen. This patch prevents the inquiry from going to SATA disks.

I 'ack' both of those patches, but am still curious: wouldn't you want to either (a) simulate an inquiry page via ATA's identify device or (b) allow userspace to issue identify device?

Jeff