James Bottomley wrote on 11.08.2005 16:51:14: > On Thu, 2005-08-11 at 16:32 +0200, Harald Seipp wrote: > Not really. We remove as much as we can and leave it up to the hotplug > scripts to detach the mount point (any further I/O's will error). > > If there's a reattachment udev should identify the device (even if it's > on a different node) and do the right thing. > > Essentially in 2.6 resolution of this problem is pushed up to the user > as a policy decision. > Thank you for your quick responses! It finally looks like the task I need to do - fully rescan all hosts for newly attached/changed devices - must include the logic to skip devices with mounted fs for 2.6. This has been so easy with 2.4... I assume the right way would be to read the mounted fs from /etc/mtab, identify the mounted partitions, track them back to the device Id/Lun's by using the SCSI_IOCTL_GET_ID_LUN ioctl and put these devices into a blacklist that will be excluded from remove-single-devices during the scan process. Can I rely on the mtab information? I recognized that e.g. submountd will add permanent entries even when the devices are not present... What about udev, devfsd, usbmount? 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