Re: [PATCH] 2.6.8.1 Mis-detect CRDW as CDROM

From: Frank Steiner
Date: Wed Aug 18 2004 - 07:37:17 EST


Hi Marc,

Marc Ballarin wrote:

growisofs and dvd+r-format open the device read-only, even though they try
to do writes.

Two choices:
1) declare all needed commands as safe for read

yes, that's what I tried, but it had no effect. For instance, I declared

safe_for_read(GPCMD_READ_FORMAT_CAPACITIES),

which is 0x23, but growisofs still complains with

Aug 18 13:52:21 aiken kernel: THIS IS MY NEW PATCH SCSI-CMD Filter: 0x23 not allowed with read-mode

That's what I don't understand. I think the line above should declare
0x23 as safe for read, but it seems to be ignored.

> (you might as well disable filtering completely...)

Likely I will end up with this :-/



2) replace O_RDONLY in dvd+r-tools sources with O_RDWR and recompile
(that's what I did).

I will check that!

cu,
Frank

--
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17 Phone: +49 89 2180-4049
80333 Muenchen, Germany Fax: +49 89 2180-99-4049

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/