Skip to content

Commit

Permalink
[SCSI] add TYPE_RBC to our type table
Browse files Browse the repository at this point in the history
Here's a tiny update that means we print the correct ASCII type
information

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
James Bottomley authored and James Bottomley committed Jul 11, 2005
1 parent a599012 commit 7f602c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions include/scsi/scsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];

/*
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7f602c5

Please sign in to comment.