From d56d32f380476f2adf17e0474ee0859129612c6e Mon Sep 17 00:00:00 2001 From: sos Date: Tue, 7 Mar 2006 14:27:54 +0000 Subject: Only look for ICRC and CORR errors on ATA devices not ATAPI. --- sys/dev/ata/ata-queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c index f95a6fb..7834b1a 100644 --- a/sys/dev/ata/ata-queue.c +++ b/sys/dev/ata/ata-queue.c @@ -306,7 +306,7 @@ ata_completed(void *context, int dummy) request->result = EIO; } } - else { + else if (!(request->flags & ATA_R_ATAPI) ){ /* if this is a soft ECC error warn about it */ /* XXX SOS we could do WARF here */ if ((request->status & (ATA_S_CORR | ATA_S_ERROR)) == ATA_S_CORR) { -- cgit v1.1