Skip to content

Commit

Permalink
Add definitions for ASCQ LBA-OUT-OF-RANGE
Browse files Browse the repository at this point in the history
  • Loading branch information
sahlberg committed Apr 4, 2011
1 parent 376f60f commit 5225b5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/scsi-lowlevel.h
Expand Up @@ -52,6 +52,7 @@ enum scsi_sense_key {
const char *scsi_sense_key_str(int key);

/* ascq */
#define SCSI_SENSE_ASCQ_LBA_OUT_OF_RANGE 0x2100
#define SCSI_SENSE_ASCQ_INVALID_FIELD_IN_CDB 0x2400
#define SCSI_SENSE_ASCQ_LOGICAL_UNIT_NOT_SUPPORTED 0x2500
#define SCSI_SENSE_ASCQ_BUS_RESET 0x2900
Expand Down
2 changes: 2 additions & 0 deletions lib/scsi-lowlevel.c
Expand Up @@ -102,6 +102,8 @@ const char *
scsi_sense_ascq_str(int ascq)
{
struct value_string ascqs[] = {
{SCSI_SENSE_ASCQ_LBA_OUT_OF_RANGE,
"LBA_OUT_OF_RANGE"},
{SCSI_SENSE_ASCQ_INVALID_FIELD_IN_CDB,
"INVALID_FIELD_IN_CDB"},
{SCSI_SENSE_ASCQ_LOGICAL_UNIT_NOT_SUPPORTED,
Expand Down

0 comments on commit 5225b5f

Please sign in to comment.