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

From: Rogier Wolff (R.E.Wolff@BitWizard.nl)
Date: Wed Feb 02 2000 - 18:13:33 EST


Drew Eckhardt wrote:

> Under Linux, the CD and disk drivers are completely divorced. When
> I wrote the disk driver, I used the smallest command possible for a
> given transfer size. The CD driver was cloned from that.

This is a bad idea! This "divorce" should be undone whenever someone
has a chance!

DVD RAM drives currently require a gross hack to allow them to be
driven by both the disk driver (to write to the device), and as a
CDROM drive (to allow cdrom ioctls like play track).

A common driver that has a bunch of flags (removeable, writeable,
play-able: hd: 010, cd: 101, mo: 110, dvd: 111) would work best....

                                Roger.

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
 "I didn't say it was your fault. I said I was going to blame it on you."

- 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:08 EST