Skip to contentSkip to conversation

SCSI: Update ASC list

PATCH In review Martin K. Petersen 2 participants 3 messages Feb 28, 2007 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SCSI: Update ASC list

Add missing additional sense code and provide pointer to upstream reference (from Doug Gilbert).

---

 constants.c |    5 +++++
 1 files changed, 5 insertions(+)
drivers/scsi/constants.c +5 -0
Index: scsi-misc-2.6/drivers/scsi/constants.c
===================================================================
@@ -404,6 +404,10 @@ struct error_info {
 	const char * text;
 };
 
+/*
+ * The canonical list of T10 Additional Sense Codes is available at:
+ * http://www.t10.org/lists/asc-num.txt
+ */
 static struct error_info additional[] =
 {
 	{0x0000, "No additional sense information"},
@@ -708,6 +712,7 @@ static struct error_info additional[] =
 
 	{0x2F00, "Commands cleared by another initiator"},
 	{0x2F01, "Commands cleared by power loss notification"},
+	{0x2F02, "Commands cleared by device server"},
 
 	{0x3000, "Incompatible medium installed"},
 	{0x3001, "Cannot read medium - unknown format"},
#1 lore raw

Martin K. Petersen wrote:
[]

drivers/scsi/constants.c

Quoted 2 lines
drivers/scsi/constants.c +0 -0

[]

Quoted 1 line

static struct error_info additional[] =

static CONST struct error_info additional[]... ?

Quoted 2 lines

{
{0x0000, "No additional sense information"},

[]

/mjt

#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Michael" == Michael Tokarev <[email protected]> writes:

Michael> static CONST struct error_info additional[]... ?

Good spotting - updated patch coming...

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering