[3063] in linux-scsi channel archive
Re: sr.c and READ CDB
daemon@ATHENA.MIT.EDU (Gerd Knorr)
Sat Jan 10 03:30:33 1998
Date: Sat, 10 Jan 1998 09:26:19 +0100
From: Gerd Knorr <kraxel@goldbach.isdn.cs.tu-berlin.de>
To: Mike Panetta <mike@grumpy.realminfo.com>
Cc: linux-scsi@vger.rutgers.edu
In lists.linux-scsi you write:
>How do I (if its even possable) change sr.c to use READ (0x28) instead
>of READ(0x08) ? Does it already do this? The drive I am useing returns
>an illegal comand sense when I try to use it with linux. (its a DVD
>drive but its still supposed to conform to scsi standards. ..)
The drive is ok. Just checked the specs, READ(6) is _optional_ for
CD-ROM devices (READ(10) is mandatory).
Gerd
-------------------------------------------------------------------------
--- sr.c.orig Sat Jan 10 09:16:08 1998
+++ sr.c Sat Jan 10 09:16:35 1998
@@ -761,7 +761,7 @@
if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
- if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten)
+ if (scsi_CDs[dev].ten)
{
if (realcount > 0xffff)
{