Ticket #10043: retry-on-asc-0x2800.patch

File retry-on-asc-0x2800.patch, 1.6 KB (added by jua, 11 years ago)

Proposed patch

  • headers/private/drivers/scsi_sense.h

    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  
    44 *
    55 * Authors:
    66 *  Jérôme Duval
    7  * 
     7 *
    88 * Generated based on http://www.t10.org/lists/asc-num.txt 20130919
    99 *  and http://www.t10.org/lists/2sensekey.htm
    1010 */
    scsi_sense_asc_table sSCSISenseAscTable[] =  
    315315    { 0x2705, "Permanent write protect", err_act_fail, B_READ_ONLY_DEVICE },    // T   R
    316316    { 0x2706, "Conditional write protect", err_act_fail, B_READ_ONLY_DEVICE },  // R       F
    317317    { 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
    319319    { 0x2801, "Import or export element accessed", err_act_fail, ENXIO },   // DT  WROM  B
    320320    { 0x2802, "Format-layer may have changed", err_act_fail, B_DEV_MEDIA_CHANGED }, // R
    321321    { 0x2803, "Import/export element accessed, medium changed", err_act_fail, B_ERROR },    // M