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.
This commit is contained in:
Warner Losh 2021-02-26 11:43:35 -07:00
parent 888ae57252
commit 34d6961108

View File

@ -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") },