]> err.no Git - linux-2.6/commitdiff
[SCSI] add TYPE_RBC to our type table
authorJames Bottomley <James.Bottomley@steeleye.com>
Sat, 21 May 2005 15:24:37 +0000 (10:24 -0500)
committerJames Bottomley <jejb@titanic.(none)>
Mon, 11 Jul 2005 17:38:33 +0000 (12:38 -0500)
Here's a tiny update that means we print the correct ASCII type
information

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi.c
include/scsi/scsi.h

index 1afe1e592af427cbe506f2367dd75f1c57722c62..d14523d7e44940689c5c7fb93567f4d865c24cf8 100644 (file)
@@ -113,6 +113,7 @@ const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE] = {
        "Unknown          ",
        "RAID             ",
        "Enclosure        ",
+       "Direct-Access-RBC",
 };
 EXPORT_SYMBOL(scsi_device_types);
 
index 1fb233741513f726579ec49514e93f53f9a68885..b361172b576c415fcc8faf298759c0647f1df73f 100644 (file)
@@ -28,7 +28,7 @@ extern const unsigned char scsi_command_size[8];
  *     SCSI device types
  */
 
-#define MAX_SCSI_DEVICE_CODE 14
+#define MAX_SCSI_DEVICE_CODE 15
 extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];
 
 /*
@@ -211,8 +211,8 @@ static inline int scsi_status_is_good(int status)
                                     * - treated as TYPE_DISK */
 #define TYPE_MEDIUM_CHANGER 0x08
 #define TYPE_COMM           0x09    /* Communications device */
-#define TYPE_ENCLOSURE      0x0d    /* Enclosure Services Device */
 #define TYPE_RAID           0x0c
+#define TYPE_ENCLOSURE      0x0d    /* Enclosure Services Device */
 #define TYPE_RBC           0x0e
 #define TYPE_NO_LUN         0x7f