Re: Devices not supporting read-6....

From: Jens Axboe (axboe@suse.de)
Date: Sun Feb 06 2000 - 15:14:35 EST


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 <axboe@suse.de>
*  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 majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:13 EST