From 45c6c5353420b0fad72918ac0c9b45596445d635 Mon Sep 17 00:00:00 2001
From: Julian Harnath <github@orangejua.de>
Date: Tue, 1 Oct 2013 00:43:31 +0200
Subject: [PATCH] Retry on ASC 0x2800 instead of failing, fixes booting from
certain USB stick.
---
headers/private/drivers/scsi_sense.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/headers/private/drivers/scsi_sense.h b/headers/private/drivers/scsi_sense.h
index f4f056c..c003e35 100644
a
|
b
|
|
4 | 4 | * |
5 | 5 | * Authors: |
6 | 6 | * Jérôme Duval |
7 | | * |
| 7 | * |
8 | 8 | * Generated based on http://www.t10.org/lists/asc-num.txt 20130919 |
9 | 9 | * and http://www.t10.org/lists/2sensekey.htm |
10 | 10 | */ |
… |
… |
scsi_sense_asc_table sSCSISenseAscTable[] =
|
315 | 315 | { 0x2705, "Permanent write protect", err_act_fail, B_READ_ONLY_DEVICE }, // T R |
316 | 316 | { 0x2706, "Conditional write protect", err_act_fail, B_READ_ONLY_DEVICE }, // R F |
317 | 317 | { 0x2707, "Space allocation failed write protect", err_act_fail, B_READ_ONLY_DEVICE }, // D B |
318 | | { 0x2800, "Not ready to ready change, medium may have changed", err_act_fail, B_DEV_MEDIA_CHANGED }, // DTLPWROMAEBKVF |
| 318 | { 0x2800, "Not ready to ready change, medium may have changed", err_act_retry, B_DEV_MEDIA_CHANGED }, // DTLPWROMAEBKVF |
319 | 319 | { 0x2801, "Import or export element accessed", err_act_fail, ENXIO }, // DT WROM B |
320 | 320 | { 0x2802, "Format-layer may have changed", err_act_fail, B_DEV_MEDIA_CHANGED }, // R |
321 | 321 | { 0x2803, "Import/export element accessed, medium changed", err_act_fail, B_ERROR }, // M |