Subject: Re: changing SCSI device type?
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 11/16/1999 18:24:29
On Tue, Nov 16, 1999 at 04:16:26PM +0100, 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?
Can't you just put the whole string in sd_scsi.c ?:
--- sd_scsi.c.old Tue Nov 16 18:23:22 1999
+++ sd_scsi.c Tue Nov 16 18:24:10 1999
@@ -88,6 +88,8 @@
"", "", ""},
{T_OPTICAL, T_REMOV,
"", "", ""},
+ {T_CDROM, T_REMOV,
+ "MATSHITA", "PD-2 LF-D100", "A113"},
};
struct sd_scsibus_mode_sense_data {
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--