The need to re-detect usb-storage devices (on resume and on-the-fly plugging)

David Zeuthen david at fubar.dk
Sun Apr 1 19:53:39 UTC 2007


On Mon, 2007-03-26 at 22:48 -0400, Michel Salim wrote:
> > Actually, I must admit, this doesn't work for me - I just tried. Upon
> > resume (from from disk and from RAM), the kernel emits uevents to remove
> > the devices, then adds them again. I don't see other device nodes being
> > used though - my guess is that you have open files on the drive when you
> > tested this? Hmm.. I can only guess that you didn't mount the partitions
> > through HAL (using gnome-mount or GNOME) because if you did, we would
> > have lazy unmounted the file system when we saw the device node going
> > away...
> >
> Yup; I see extra nodes being created only I manually mounted the
> removable partition in the first place (e.g. when I forgot to plug the
> device at boot)

Right, that's why - HAL will only lazy unmount file systems originating
from an unplugged device, if that file system was mounted through HAL.
So it all makes sense now.

     David





More information about the fedora-devel-list mailing list