[PATCH] libata: pick a less confusion "um dunno" error
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
b6782728d7
commit
2d2020242d
|
@ -511,13 +511,11 @@ void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk, u8 *asc,
|
||||||
printk(KERN_WARNING "ata%u: no sense translation for status: 0x%02x\n",
|
printk(KERN_WARNING "ata%u: no sense translation for status: 0x%02x\n",
|
||||||
id, drv_stat);
|
id, drv_stat);
|
||||||
|
|
||||||
/* For our last chance pick, use medium read error because
|
/* We need a sensible error return here, which is tricky, and one
|
||||||
* it's much more common than an ATA drive telling you a write
|
that won't cause people to do things like return a disk wrongly */
|
||||||
* has failed.
|
*sk = ABORTED_COMMAND;
|
||||||
*/
|
*asc = 0x00;
|
||||||
*sk = MEDIUM_ERROR;
|
*ascq = 0x00;
|
||||||
*asc = 0x11; /* "unrecovered read error" */
|
|
||||||
*ascq = 0x04; /* "auto-reallocation failed" */
|
|
||||||
|
|
||||||
translate_done:
|
translate_done:
|
||||||
printk(KERN_ERR "ata%u: translated ATA stat/err 0x%02x/%02x to "
|
printk(KERN_ERR "ata%u: translated ATA stat/err 0x%02x/%02x to "
|
||||||
|
|
Loading…
Reference in New Issue