Re: re-detect SCSi bus? Skript

Kurt Garloff (garloff@kg1.ping.de)
Fri, 20 Mar 1998 15:26:03 +0100


On Fri, Mar 20, 1998 at 07:26:16AM -0500, Linux-Kernel Mail Account wrote:
> Better question, what happens if you try and remove a device which is in
> use? For a total reprobe you have to allow for the fact that your going to
> be removing too, might need to add checks to see if the device is busy
> before trying to pull it?

This is from scsi.c:
* Usage: echo "scsi remove-single-device 0 1 2 3" >/proc/scsi/scsi
* with "0 1 2 3" replaced by your "Host Channel Id Lun".
*
* Consider this feature pre-BETA.
*
* CAUTION: This is not for hotplugging your peripherals. As
* SCSI was not designed for this you could damage your
* hardware and thoroughly confuse the SCSI subsystem.

It says nothing about whether it checks for block devices on it and whethter
they are busy. You have to read the code by yourself.
You may want to check it out with a CD-Rom or a ZIP disk without
valuable data ...

-- 
Kurt Garloff, Dortmund 
<K.Garloff@ping.de>
PGP key on http://student.physik.uni-dortmund.de/homepages/garloff

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu