aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi_scan.c1
-rw-r--r--include/scsi/scsi.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index 8f4de20c9deb..a14d245a66b8 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -797,6 +797,7 @@ static int scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result,
797 case TYPE_ENCLOSURE: 797 case TYPE_ENCLOSURE:
798 case TYPE_COMM: 798 case TYPE_COMM:
799 case TYPE_RAID: 799 case TYPE_RAID:
800 case TYPE_OSD:
800 sdev->writeable = 1; 801 sdev->writeable = 1;
801 break; 802 break;
802 case TYPE_ROM: 803 case TYPE_ROM:
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
index 815d4047c4ce..80d7f60e2663 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -263,6 +263,7 @@ static inline int scsi_status_is_good(int status)
263#define TYPE_RAID 0x0c 263#define TYPE_RAID 0x0c
264#define TYPE_ENCLOSURE 0x0d /* Enclosure Services Device */ 264#define TYPE_ENCLOSURE 0x0d /* Enclosure Services Device */
265#define TYPE_RBC 0x0e 265#define TYPE_RBC 0x0e
266#define TYPE_OSD 0x11
266#define TYPE_NO_LUN 0x7f 267#define TYPE_NO_LUN 0x7f
267 268
268/* SCSI protocols; these are taken from SPC-3 section 7.5 */ 269/* SCSI protocols; these are taken from SPC-3 section 7.5 */