*BSD News Article 77828


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Dual use of HP CD-R
Date: 8 Sep 1996 01:30:54 GMT
Organization: Private BSD site, Dresden
Lines: 28
Message-ID: <50t7ke$kf1@uriah.heep.sax.de>
References: <322AA3C3.41C67EA6@interramp.com> <32311249.1CFBAE39@freebsd.org>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

"Jordan K. Hubbard" <jkh@FreeBSD.org> wrote:

> > I have a HP 4020i and would like to be able to mount it as a standard
> > CD (i.e. /dev/cd0a) and be able to use it as a WORM (/dev/rworm0)
> > without changing the kernel and rebooting.  Is this possible?
> 
> Not without re-writing the worm driver so that it's a superset of the CD
> driver.  Any volunteers?

Rewrite is an overstatement.  The driver is already supposed to read
CD's (it doesn't do it, but that's a bug, not an omission), all it
needs in addition to fixing this is a good method to have it inherit
the ioctl stuff from the `cd' driver without duplicating the code.
This requires a new layering scheme for the SCSI `type' drivers, but
not much of code rewriting.

freebsd-scsi@freebsd.org is the definate forum for people who wanna
come up with good ideas for how to do this.  Please, don't start
hacking away without consulting people there first, Justin Gibbs has a
rewrite of some major parts of the SCSI subsystem in the queue, so
your work will likely be clobbered by this.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)