> > Plus, we only call sd_spinup_disk() during discovery and not on open, > > unlike the calls to sd_media_changed(). > > > Would it be workable to add a scsi_devinfo flag for devices with ghosts. > If this flag is set and state is down, open calls sd_media_changed(). > The multipath-tools and device-mapper will try as hard as possible to > avoid opening those device if not necessary, by grouping them in a low > priority path group. > In fact the NOSTARTONADD flag seems just used for devices with ghosts paths. So we could extend its logic : no start on add, but start on IO is state is down. SG_IO should not activate the path though, for the path checker not to activate it. regards, -- christophe varoqui <christophe.varoqui@xxxxxxx>