Re: SCSI bus reset

Michael Neuffer (neuffer@goofy.zdv.uni-mainz.de)
Mon, 1 Jul 1996 21:24:27 +0200 (MEST)


On 28 Jun 1996, Frohwalt Egerer wrote:

> neuffer@goofy.zdv.uni-mainz.de (Michael Neuffer) writes:
> >> Exactly SCSI bus rescan. Is it possible?
>
> >It depends on the SCSI controller you are using.
>
> >I implemented support for this quite some time ago.
>
> >This is the comment: :-)
> > /*
> > * Usage: echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
> > * with "0 1 2 3" replaced by your "Host Channel Id Lun".
> > * Consider this feature BETA.
> > * CAUTION: This is not for hotplugging your peripherals. As
> > * SCSI was not designed for this you could damage your
> > * hardware !
> > * However perhaps it is legal to switch on an
> > * already connected device. It is perhaps not
> > * guaranteed this device doesn't corrupt an ongoing data transfer.
> > */
>
>
> Btw, this properly initializes Platters (LUN) 0-3 on my CD ROM
> changer, and although Platter/LUN 4 and 5 are mentioned in the syslog
> /dev/sr5 and /dev/sr6 are not useable afterwards. (The changer starts
> at /dev/sr1 ...)
>
> Btw, the feature works great after turning on my external streamer,
> which has a fan that probably has been a hovercraft engine in it's
> before life ;-)

There is currently a hard limit of devices that can be attached this way,
since the structures for this are hardcoded into the source.

Maybe we could make this more dynamic.

Mike

Michael Neuffer i-Connect.Net, a Division of iConnect Corp.
mike@i-Connect.Net 14355 SW Allen Blvd., Suite 140
503.677.2900 Beaverton, OR 97008