]> code.ossystems Code Review - openembedded-core.git/commit
udev-extraconf: Unmount SD card after ejection
authorYasir-Khan <yasir_khan@mentor.com>
Thu, 14 Aug 2014 14:56:37 +0000 (19:56 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Aug 2014 17:19:52 +0000 (18:19 +0100)
commit140d188b3665f914396834168feeff6ffcb64d76
tree89264a254bec2a6b1cc1b562b84dbe3665d407a5
parent64048d45d5c52d354396e357e765f0fd8b5e56fd
udev-extraconf: Unmount SD card after ejection

Adds udev rule to unmount SD card partitions in case of improper
ejection from card reader.

When SD card is ejected from card reader without being unmounted
first, kernel does not generate a REMOVE event, instead it
generates a CHANGE event(only if polling is enabled
/sys/module/block/parameters/events_dfl_poll_msecs) and we don't
have any udev rule in automount.rules to handle this event,so
partitions never get unmounted. Unmounting of partitions can be
done if udev rules handle this CHANGE event.

Signed-off-by: Abbas Raza <Abbas_Raza@mentor.com>
Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev-extraconf/automount.rules
meta/recipes-core/udev/udev-extraconf/mount.sh