All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SCSI: Update ASC list
@ 2007-02-28 17:10 Martin K. Petersen
  2007-02-28 17:22 ` Michael Tokarev
  0 siblings, 1 reply; 3+ messages in thread
From: Martin K. Petersen @ 2007-02-28 17:10 UTC (permalink / raw)
  To: linux-scsi


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

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

--- 

 constants.c |    5 +++++
 1 files changed, 5 insertions(+)


Index: scsi-misc-2.6/drivers/scsi/constants.c
===================================================================
--- scsi-misc-2.6.orig/drivers/scsi/constants.c
+++ 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"},

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] SCSI: Update ASC list
  2007-02-28 17:10 [PATCH] SCSI: Update ASC list Martin K. Petersen
@ 2007-02-28 17:22 ` Michael Tokarev
  2007-02-28 17:34   ` Martin K. Petersen
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2007-02-28 17:22 UTC (permalink / raw)
  To: Martin K. Petersen; +Cc: linux-scsi

Martin K. Petersen wrote:
[]
> --- scsi-misc-2.6.orig/drivers/scsi/constants.c
> +++ scsi-misc-2.6/drivers/scsi/constants.c
[]
>  static struct error_info additional[] =

static CONST struct error_info additional[]... ?
>  {
>  	{0x0000, "No additional sense information"},
[]

/mjt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] SCSI: Update ASC list
  2007-02-28 17:22 ` Michael Tokarev
@ 2007-02-28 17:34   ` Martin K. Petersen
  0 siblings, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2007-02-28 17:34 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: linux-scsi

>>>>> "Michael" == Michael Tokarev <mjt@tls.msk.ru> writes:

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

Good spotting - updated patch coming...

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-28 17:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-28 17:10 [PATCH] SCSI: Update ASC list Martin K. Petersen
2007-02-28 17:22 ` Michael Tokarev
2007-02-28 17:34   ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.