[SCSI] add OSD_TYPE
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 25 Jan 2009 14:51:33 +0000 (16:51 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:58:05 +0000 (12:58 -0500)
- Define the OSD_TYPE scsi device and let it show up in scans

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_scan.c
include/scsi/scsi.h

index 8f4de20c9deb061266b41f18866931523e93241a..a14d245a66b842c3bdfa619a04904fefd8e90db5 100644 (file)
@@ -797,6 +797,7 @@ static int scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result,
        case TYPE_ENCLOSURE:
        case TYPE_COMM:
        case TYPE_RAID:
+       case TYPE_OSD:
                sdev->writeable = 1;
                break;
        case TYPE_ROM:
index 815d4047c4cee6e8e06d53e7e72f5c5334859f40..80d7f60e2663a0168025380d8682f7a9406f6518 100644 (file)
@@ -263,6 +263,7 @@ static inline int scsi_status_is_good(int status)
 #define TYPE_RAID           0x0c
 #define TYPE_ENCLOSURE      0x0d    /* Enclosure Services Device */
 #define TYPE_RBC           0x0e
+#define TYPE_OSD            0x11
 #define TYPE_NO_LUN         0x7f
 
 /* SCSI protocols; these are taken from SPC-3 section 7.5 */