On Sun, Feb 06 2000, Eric Youngdale wrote:
> Actually I had another thought. There is an even easier way of doing
> things now. When I cleaned up the queueing code, a lot of the similar code
> between sd and sr got moved into scsi_lib.c. Thus teaching sr.c to handle
> writes would be quite trivial. Mainly adjusting sr_init_command() to
> generate a WRITE_10 if the command is a write and the device has the
> writable flag set.
>
> There are a couple of places where it tries to ensure that access is
> read-only (possibly in sr_open) These would need to be modified so that
> they check the writable flag first.
Indeed the changes are trivial, with a DVD-RAM at least. And sr
deos have the write in place in current 2.3 kernels.
I have a DVD-RAM drive handy, I'll try and hack something up.
--
* Jens Axboe <[EMAIL PROTECTED]>
* Linux CD-ROM Maintainer
* http://www.kernel.dk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/