>From [EMAIL PROTECTED] Wed Jan 22 09:35:39 2003

>> >How helpful. How about saying what's broken instead and I'd be happy to
>> >fix it.
>> 
>> I thought it's obvious: It is most likely a problem caused by the broken 
>> bit #defines in the Linux kernel for the SCSI status byte. I assume that
>> status should be 0x02 instead of 0x01. In addition, I would guess that

>Sounds plausible. Patch attached. Anyone care to expand on _why_ these
>status bytes are shifted one bit?

I have no idea... About 3-4 years ago, I tried to convice some of the kernel
people to change this but as you see, it did not happen.


>===== drivers/ide/ide-cd.c 1.35 vs edited =====
>--- 1.35/drivers/ide/ide-cd.c  Thu Nov 21 22:56:59 2002
>+++ edited/drivers/ide/ide-cd.c        Wed Jan 22 09:34:28 2003
>@@ -706,7 +706,7 @@
>                * scsi status byte
>                */
>               if ((rq->flags & REQ_BLOCK_PC) && !rq->errors)
>-                      rq->errors = CHECK_CONDITION;
>+                      rq->errors = CHECK_CONDITION << 1;
> 
>               /* Check for tray open. */
>               if (sense_key == NOT_READY) {

J�rg

 EMail:[EMAIL PROTECTED] (home) J�rg Schilling D-13353 Berlin
       [EMAIL PROTECTED]               (uni)  If you don't have iso-8859-1
       [EMAIL PROTECTED]           (work) chars I am J"org Schilling
 URL:  http://www.fokus.fhg.de/usr/schilling   ftp://ftp.berlios.de/pub/schily


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to