Skip to content

Commit

Permalink
[SCSI] constants.c: Update ASC list and make it const
Browse files Browse the repository at this point in the history
Add missing additional sense code and provide pointer to upstream
reference (from Doug Gilbert).

Add missing const (from Michael Tokarev).

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Martin K. Petersen authored and James Bottomley committed Mar 11, 2007
1 parent fa0d34b commit 62d42a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/scsi/constants.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,11 @@ struct error_info {
const char * text;
};

static struct error_info additional[] =
/*
* The canonical list of T10 Additional Sense Codes is available at:
* http://www.t10.org/lists/asc-num.txt
*/
static const struct error_info additional[] =
{
{0x0000, "No additional sense information"},
{0x0001, "Filemark detected"},
Expand Down Expand Up @@ -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"},
Expand Down

0 comments on commit 62d42a6

Please sign in to comment.