Re: re-detect SCSi bus?

Lech Szychowski (lech7@lech.pse.pl)
Wed, 18 Mar 1998 19:42:35 +0100 (MET)


> My point was that this was a rather (possibly) dangerous way to do it.

Dangerous? Why? I believe that (at least as long as you do not try to
add a device that's already been added/initalized) you can quite safely
write a simple program/script that tries to add all devices (well, just
those that make sense ie no IDs greater than 8 on non-wide bus etc) and
run it at any time. There might be some issues I'm not aware of, like
doing this repeatedly many times one right after another, but if it's
just a script ran once...

> I don't wana know boards,channels,id's - I wanna turn on a device and
> say find it.

The aforementioned script would do all this for you, I think.

> As I said before I routinely use a removeable SCSI HD for backup.

And I routinely hot-plug (on and off) ordinary SCSI-2 drives (numerous
types: IBM, Fujitsu, Quantum, Seagate) to my old no name NCR 810.
No probs so far (I've been doing this for more than a year now, AFAIR).
>From time to time SCSI bus gets reset but I believe it's due to my
extremaly careless attitude towards termination; 53c810 seems to be
very permissive when it comes to termination but it has its limits :)

> I think there should be a "higher level" way to do this for SCSI devices.

Some call like, say, rescan_and_register_new_scsi_devs()? I don't think
it's necessary since it seems all stuff like this can be done using
user-level code.

-- 

Leszek.

+==========================================================================+ | lech7@pse.pl 2:480/33.7 - REAL programmers use INTEGERS - | | Speaking just for myself... | +==========================================================================+

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