Re: How to resurrect offlined SCSI devices?

Mike Anderson
2004-05-26T18:03:09Z

James Bottomley [James.Bottomley@SteelEye.com] wrote:
> Not necessarily roll our own, just plug into the hotplug
> infrastructure. But generate events, definitely.

Yes we do not need to roll our own, Mike C's mail pointed out that these
interfaces are exported.

We should be able to add a call to kobject_hotplug in
scsi_device_set_state for certain / all state transitions depending on
how many events one would want to go to users space. Unexpected state
transitions would seem like a good starting point to not generate to
much user space traffic (i.e running -> offline, offline -> running).

This also assumes that if one expects user space reaction to these
events occurring on a root device they have already prepared there needed
tools in a ramdisk environment.

-andmike
--
Michael Anderson
andmike@us.ibm.com