� ���, 13.03.2002, � 22:45, Borsenkow Andrej �������:
> 
> Ideally ide-scsi should be on top of IDE not replace original IDE
> driver. May be when I have enough courage :-)
> 

May be not. But adding something like

ide-scsi claim_drives=hdc,hdd

seems possible. Anyway, here is brute force method to force ide-scsi
after boot:

echo -n ide_scsi:1 > /proc/ide/hdc/settings
rmmod ide-scsi
echo -n ide-scsi > /proc/ide/hdc/driver
modprobe ide-scsi

dmesg would look like

scsi : 0 hosts left.
ide-cd: passing drive hdc to ide-scsi emulation.
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: CREATIVE  Model: DVD1240E          Rev: 3X14
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: PHILIPS   Model: CDD3610 CD-R/RW   Rev: 3.09
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 20x/40x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray

and if you do not use hdX=ide-scsi on boot you probably do not even need
to rmmod.

ide_scsi=1 is currently needed because ide-scsi module executes init 
only once and replacing driver (echo ide-scsi > .../driver) tries to
call module init function to claim device that does not work so drive is
taken back by ide-cd unless we tell it to keep away :-)

-andrej

Reply via email to