From df6b7c56b0411298f6d5f715c2a11e92b963ecdb Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Thu, 3 Jun 2010 18:58:26 +0100 Subject: [PATCH] udev 151: Update omap3-pandora mount.sh to do a lazy (-l) umount when a device is removed. --- recipes/udev/udev-151/omap3-pandora/mount.sh | 9 ++++++--- recipes/udev/udev_151.bb | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/recipes/udev/udev-151/omap3-pandora/mount.sh b/recipes/udev/udev-151/omap3-pandora/mount.sh index 21440eeca4..7ba7ba7e98 100644 --- a/recipes/udev/udev-151/omap3-pandora/mount.sh +++ b/recipes/udev/udev-151/omap3-pandora/mount.sh @@ -1,8 +1,8 @@ #!/bin/sh # # Called from udev -# Attemp to mount any added block devices -# and remove any removed devices +# +# Attempt to mount any added block devices and remove any removed devices. # MOUNT="/bin/mount" @@ -62,7 +62,10 @@ fi if [ "$ACTION" = "remove" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " ` do - $UMOUNT $mnt + # 20100306: Remove the mount point forcibly (Lazy) as the user has already removed the device by the + # DJWillis: time this fires so any handles are bad anyway. This should stop 'stale' folders being + # left around all the time. + $UMOUNT -l $mnt done # Remove empty directories from auto-mounter diff --git a/recipes/udev/udev_151.bb b/recipes/udev/udev_151.bb index ac14560be3..15fda19ec5 100644 --- a/recipes/udev/udev_151.bb +++ b/recipes/udev/udev_151.bb @@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod the hotplug package and requires a kernel not older than 2.6.12." LICENSE = "GPLv2+" -PR = "r9" +PR = "r10" # Untested DEFAULT_PREFERENCE = "-1" -- 2.39.5