Subject: Re: changing SCSI device type?
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Matthew Jacob <mjacob@feral.com>
List: tech-kern
Date: 11/16/1999 07:34:22
Sounds gross, but okay, what the heck..scsiconf.c is probably the best for
quirks like this.

On Tue, 16 Nov 1999, Hubert Feyrer wrote:

> 
> 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
>