> Harald, > I just tried remove-single-device followed by > add-single-device and I got /dev/sda back again. > I also placed the two commands in a script file > so they were executed with a very short delay between > the two commands. > > The test was with lk 2.6.13-rc6 and a multicard > reader (4 luns) via the usb-storage driver. Just tried on debian etc (2.6.13-rc6), two SCSI HDDs attached to an aic7xxx - same issue, independent if I use procfs or sysfs for device removal. But anyway, this behavior seems to be "working as designed" based on the other feedback to this thread. > > > Can I easily query > > if a device on "h b t l" is mounted to work-around? > > ls /sys/class/scsi_device/<h>:<b>:<t>:<l> > > will indicate (in the lk 2.6 series) that SCSI device > "h b t l" is present or not. As for mounted file systems > on (partitions of) a disk when its is removed and re-added, > I'm not so sure: seems like a questionable procedure IMO. This unfortunately does not tell me if there is a pending reference to the device (e.g. due to mounted file systems). Such a reference would greatly help to satisfy my needs. Harald Seipp IBM Systems and Technology Group - : 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