Skip to contentSkip to conversation

Recognize device type 0x0C

PATCH New Brian King 1 participant 1 message Jan 22, 2004 SCSI

lore
Share & tools
lore

Brian King

author
#0 lore raw

PATCH 1/1 Recognize device type 0x0C

Attached is a simple patch to recognize device type 0x0C, since I will be creating devices of this type in the ipr driver, I figured it might be good if they showed up as RAID devices rather than Unknown.

Signature · 3 lines
Brian King
eServer Storage I/O
IBM Linux Technology Center
drivers/scsi/scsi.c +1 -1
diff -Naur linux-2.6.1/drivers/scsi/scsi.c linux-2.6.1-sacl/drivers/scsi/scsi.c
@@ -104,7 +104,7 @@
 	"Communications   ",
 	"Unknown          ",
 	"Unknown          ",
-	"Unknown          ",
+	"RAID             ",
 	"Enclosure        ",
 };
 
include/scsi/scsi.h +1 -0
diff -Naur linux-2.6.1/include/scsi/scsi.h linux-2.6.1-sacl/include/scsi/scsi.h
@@ -193,6 +193,7 @@
 #define TYPE_MEDIUM_CHANGER 0x08
 #define TYPE_COMM           0x09    /* Communications device */
 #define TYPE_ENCLOSURE      0x0d    /* Enclosure Services Device */
+#define TYPE_RAID           0x0c
 #define TYPE_NO_LUN         0x7f
 
 /*