aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-02-26 18:43:35 +0000
committerWarner Losh <imp@FreeBSD.org>2021-03-07 23:07:44 +0000
commitfeef1047d646105b7ea5c7220ff7cd8e0ef6e3de (patch)
tree05940a3fa218b16fe340892b05b00453e9d6bcd8
parentbe56d474e3c283dff1b651fd3436739585a5972b (diff)
downloadsrc-feef1047d646105b7ea5c7220ff7cd8e0ef6e3de.tar.gz
src-feef1047d646105b7ea5c7220ff7cd8e0ef6e3de.zip
cam: add new ASC and ASCQ values related to drive depopulation
Add 04/25 Depopulation restoration in progress, 31/04 Depopulation failed, and 31/05 Depopulation restoration failed. These are defined in SPC-6r2 (though 31/4 was added in an earlier draft). They relate to different aspects of in-progress or failed depopulation removal and restoration commands. (cherry picked from commit 34d6961108bd47243236d086551459c52adabf49)
-rw-r--r--sys/cam/scsi/scsi_all.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 1d9b74e4fe0c..1b60003a4ac7 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -1191,6 +1191,9 @@ static struct asc_table_entry asc_table[] = {
/* D */
{ SST(0x04, 0x24, SS_FATAL | EBUSY,
"Depopulation in progress") },
+ /* D */
+ { SST(0x04, 0x25, SS_FATAL | EBUSY,
+ "Depopulation restoration in progress") },
/* DTL WROMAEBKVF */
{ SST(0x05, 0x00, SS_RDEF,
"Logical unit does not respond to selection") },
@@ -2072,6 +2075,12 @@ static struct asc_table_entry asc_table[] = {
/* D B */
{ SST(0x31, 0x03, SS_FATAL | EIO,
"SANITIZE command failed") },
+ /* D */
+ { SST(0x31, 0x04, SS_FATAL | EIO,
+ "Depopulation failed") },
+ /* D */
+ { SST(0x31, 0x05, SS_FATAL | EIO,
+ "Depopulation restoration failed") },
/* D W O BK */
{ SST(0x32, 0x00, SS_RDEF,
"No defect spare location available") },