Linux-kernel mailing list archive 2000-06,: Re: Devices not supporting read-6....

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

Jens Axboe (axboe@suse.de)
Sun, 6 Feb 2000 21:14:35 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Terry Katz: "RE: File sizes / MegaRaid"
- Previous message: Alan Cox: "Re: File sizes / MegaRaid"

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/

- Next message: Terry Katz: "RE: File sizes / MegaRaid"
- Previous message: Alan Cox: "Re: File sizes / MegaRaid"