Subject: changing SCSI device type?
To: None <tech-kern@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-kern
Date: 11/16/1999 16:16:26
Hi,

I'd like to tell a certain SCSI device - if probed - that in contrast to
what it claims to it's not a 'cdrom removable', but rather a 'direct
removable'. The device in question is a Panasonic DVD-RAM (LF-D100),
currently probed as:

cd1 at scsibus0 targ 4 lun 0: <MATSHITA, PD-2 LF-D100, A113> SCSI2 5/cdrom removable

As cdrecord does not support this type of drive[*], this seems to be a
working alternative, looking at the patch at
http://www.panasonic.com/industrial_oem/computer/storage/dvd-ram/images/drivers/panasonic-dvd.diff.gz. 

How can I do this - from a quick glance at the SCSI quirks code, it
doesn't seem to support a "change T_CDROM to T_DIRECT". How/where would
one do this at best? Just insert an equivalend of the Linux code with two
strncmp()s, and remap, somewhere in scsiconf.c?


 - Hubert


[*] I talked to Joerg Schilling about this

-- 
NetBSD - Better for your uptime than Viagra