提交 62d42a62 编写于 作者: M Martin K. Petersen 提交者: James Bottomley

[SCSI] constants.c: Update ASC list and make it const

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

Add missing const (from Michael Tokarev).
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 fa0d34be
...@@ -404,7 +404,11 @@ struct error_info { ...@@ -404,7 +404,11 @@ struct error_info {
const char * text; 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"}, {0x0000, "No additional sense information"},
{0x0001, "Filemark detected"}, {0x0001, "Filemark detected"},
...@@ -708,6 +712,7 @@ static struct error_info additional[] = ...@@ -708,6 +712,7 @@ static struct error_info additional[] =
{0x2F00, "Commands cleared by another initiator"}, {0x2F00, "Commands cleared by another initiator"},
{0x2F01, "Commands cleared by power loss notification"}, {0x2F01, "Commands cleared by power loss notification"},
{0x2F02, "Commands cleared by device server"},
{0x3000, "Incompatible medium installed"}, {0x3000, "Incompatible medium installed"},
{0x3001, "Cannot read medium - unknown format"}, {0x3001, "Cannot read medium - unknown format"},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册