diff options
author | sos <sos@FreeBSD.org> | 2006-03-07 14:27:54 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2006-03-07 14:27:54 +0000 |
commit | d56d32f380476f2adf17e0474ee0859129612c6e (patch) | |
tree | ee0b93baa04b2c571c502fb4c3ae1fb553b85812 | |
parent | 940db6a9cd117d936f33da075a0e96d4d8fabecd (diff) | |
download | FreeBSD-src-d56d32f380476f2adf17e0474ee0859129612c6e.zip FreeBSD-src-d56d32f380476f2adf17e0474ee0859129612c6e.tar.gz |
Only look for ICRC and CORR errors on ATA devices not ATAPI.
-rw-r--r-- | sys/dev/ata/ata-queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |