Garrett D'Amore wrote: > I was hoping to find a SCSI bus implementation (or > pseudo-implementation) that handled hotplug of *targets* gracefully. I > can't seem to find any that don't require collaboration from cfgadm. > (There are some that hotplug the whole *bus*, e.g. scsa2usb and > scsa1394, but not individual targets.) > > In other words, imagine I have a "pseudo-bus", that can detect when > targets (emulated disks, in this case) arrive or depart. It would be > nice to have "sd" come up automatically, and also get a notice when the > device has departed, without having to rip out the underlying "bus". > Any thoughts on where I can look for examples? > > As far as I can tell, USB seems to be the only bus that "autosenses" > hotplug events and auto-attaches devices without administrative action > (maybe also 1394, but I'm not sure). Perhaps this is done in > collaboration with sysevent or other userland code? > > -- Garrett > > _______________________________________________ > opensolaris-code mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code > In addition to USB/1394, iSCSI and FibreChannel also allow devices to be hot plugged.
The code to implement sounds similar to what Artem describes for USB. Aaron. _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
