On Thursday, March 23, 2000 1:46 PM, Kurt Garloff [SMTP:[EMAIL PROTECTED]]
wrote:
> On Thu, Mar 23, 2000 at 01:09:49PM -0500, Eric Youngdale wrote:
> > It is possible to manually do this through the /proc filesystem. In
> > scsi.c there are comments which describe how this works:
> >
> > /*
> > * Usage: echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
>
> And here's a script to do it automatically for your while bus ...
> http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
>
> Look at Doug Gilbert's sg utils for different approaches.
Thanks everyone for suggestions and ideas.
I'm actually looking for something that can be done from
within a driver without any manual intervention.
Hmmm... Since:
echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
appears to result in the following call:
scan_scsis(HBA_ptr, 1, channel, id, lun);
is it possible for a SCSI driver to just make this call directly?
Before I try it, does anyone know of any reasons why this
wouldn't work?
Thanks again,
-SteveR
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]