Re: cold-plugged usb flash drive not handled correctly in embedded system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 20, 2010 at 09:32:18AM -0700, Bryan Kadzban wrote:
> On Fri, Aug 20, 2010 at 04:42:36PM +0200, Wolfgang Wegner wrote:
> > ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/umount -l /mnt/usbdisk"
> 
> Hmm.  You are aware that this won't save you, right?  :-)

Yes, I am - once more you got me for simply copying something
without a deeper look into it. The scripts/commands were simply
copied from either a script formerly used with mdev and from
some udev example I found on the internet. I can only guess that
the intention was to not block udev with the umount in case some
data would have needed to be flushed out. As long as the device
does not work wireless, it is clear there can be no transaction
after the unplug == remove event. :-)

Regards,
Wolfgang

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux