[8474] in linux-scsi channel archive
RE: inducing SCSI bus scan
daemon@ATHENA.MIT.EDU (Ralston, Steve)
Thu Mar 23 20:49:52 2000
Message-ID: <B2B3C90E45AED111B7B40001FA7E520A0383405C@exw-kansas.ks.lsil.com>
From: "Ralston, Steve" <steve.ralston@lsil.com>
To: "'Kurt Garloff'" <garloff@suse.de>,
Eric Youngdale <eric@andante.org>
Cc: "'linux-scsi'" <linux-scsi@vger.rutgers.edu>
Date: Thu, 23 Mar 2000 19:27:48 -0600
MIME-Version: 1.0
Content-Type: text/plain
On Thursday, March 23, 2000 1:46 PM, Kurt Garloff [SMTP:garloff@suse.de]
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 majordomo@vger.rutgers.edu