diff --git a/include/scsi-lowlevel.h b/include/scsi-lowlevel.h index c2b9e12..15f4d59 100644 --- a/include/scsi-lowlevel.h +++ b/include/scsi-lowlevel.h @@ -69,6 +69,7 @@ EXTERN const char *scsi_sense_key_str(int key); #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 +#define SCSI_SENSE_ASCQ_INTERNAL_TARGET_FAILURE 0x4400 EXTERN const char *scsi_sense_ascq_str(int ascq); diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c index 6dbfed5..1f5b85a 100644 --- a/lib/scsi-lowlevel.c +++ b/lib/scsi-lowlevel.c @@ -95,6 +95,8 @@ const char * scsi_sense_key_str(int key) { struct value_string keys[] = { + {SCSI_SENSE_HARDWARE_ERROR, + "HARDWARE_ERROR"}, {SCSI_SENSE_ILLEGAL_REQUEST, "ILLEGAL_REQUEST"}, {SCSI_SENSE_UNIT_ATTENTION, @@ -119,6 +121,8 @@ scsi_sense_ascq_str(int ascq) "LOGICAL_UNIT_NOT_SUPPORTED"}, {SCSI_SENSE_ASCQ_BUS_RESET, "BUS_RESET"}, + {SCSI_SENSE_ASCQ_INTERNAL_TARGET_FAILURE, + "INTERNAL_TARGET_FAILURE"}, {0, NULL} };