> -----Original Message----- > From: K. Y. Srinivasan [mailto:kys@xxxxxxxxxxxxx] > Sent: Thursday, November 03, 2011 4:29 PM > To: linux-scsi@xxxxxxxxxxxxxxx; james.bottomley@xxxxxxxxxxxxxxxxxxxxx; > hch@xxxxxxxxxxxxx; KY Srinivasan > Subject: scsi scan > > James, > > On the Windows host they allow hot add/remove of block devices attached to > the scsi controller(s) assigned to the guest. > So, when a hot add/remove event occurs, the host sends a message to the guest > that something has changed on the hba and > the guest is responsible for figuring out what has changed: a) Setup state to > manage new devices that may have been added > and b) get rid of devices that may have been removed. As I look at implementing > this functionality for Linux guests, > I would need to be able to do a scan on the hba under question and deal only > with whatever has changed. > Is this something that the scsi core supports or would I need to roll out a version > of scan that would ignore > devices already scanned (except for the remove case) and properly add new > devices that may be found. > Any guidance here would be greatly appreciated. I see that the re-scan is correctly done through sysfs by writing the string "- - -" to the scan file under /sys/class/scsi_host/*/scan. Regards, K. Y -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html