git: feef1047d646 - stable/13 - cam: add new ASC and ASCQ values related to drive depopulation

Warner Losh imp at FreeBSD.org
Mon Mar 8 00:11:39 UTC 2021


The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=feef1047d646105b7ea5c7220ff7cd8e0ef6e3de

commit feef1047d646105b7ea5c7220ff7cd8e0ef6e3de
Author:     Warner Losh <imp at FreeBSD.org>
AuthorDate: 2021-02-26 18:43:35 +0000
Commit:     Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-03-07 23:07:44 +0000

    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)
---
 sys/cam/scsi/scsi_all.c | 9 +++++++++
 1 file changed, 9 insertions(+)

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


More information about the dev-commits-src-all mailing list