* [PATCH v2] udev/mount.sh: use lazy umount
[not found] <111b01cb123eb0466e0MAN_POSIXLY_CORRECT=1Distant-earth.com>
@ 2010-06-23 6:11 ` Steffen Sledz
2010-06-23 7:51 ` Koen Kooi
0 siblings, 1 reply; 3+ messages in thread
From: Steffen Sledz @ 2010-06-23 6:11 UTC (permalink / raw)
To: openembedded-devel
* umount will fail if there are processes accessing files at the
device, use lazy umount to avoid this problem
Signed-off-by: Steffen Sledz <sledz@dresearch.de>
---
recipes/udev/files/mount.sh | 2 +-
recipes/udev/files/slugos/mount.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes/udev/files/mount.sh b/recipes/udev/files/mount.sh
index be8b3df..440dcee 100644
--- a/recipes/udev/files/mount.sh
+++ b/recipes/udev/files/mount.sh
@@ -64,7 +64,7 @@ fi
if [ "$ACTION" = "remove" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then
for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " `
do
- $UMOUNT $mnt
+ $UMOUNT -l $mnt
done
# Remove empty directories from auto-mounter
diff --git a/recipes/udev/files/slugos/mount.sh b/recipes/udev/files/slugos/mount.sh
index 0990a7e..b5298e9 100644
--- a/recipes/udev/files/slugos/mount.sh
+++ b/recipes/udev/files/slugos/mount.sh
@@ -75,7 +75,7 @@ fi
if [ "$ACTION" = "remove" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then
for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " `
do
- $UMOUNT $mnt
+ $UMOUNT -l $mnt
done
# Remove empty directories from auto-mounter
--
1.6.4.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] udev/mount.sh: use lazy umount
2010-06-23 6:11 ` [PATCH v2] udev/mount.sh: use lazy umount Steffen Sledz
@ 2010-06-23 7:51 ` Koen Kooi
2010-06-23 12:05 ` Steffen Sledz
0 siblings, 1 reply; 3+ messages in thread
From: Koen Kooi @ 2010-06-23 7:51 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 23-06-10 08:11, Steffen Sledz wrote:
> * umount will fail if there are processes accessing files at the
> device, use lazy umount to avoid this problem
>
> Signed-off-by: Steffen Sledz <sledz@dresearch.de>
Looks good to me:
Acked-by: Koen Kooi <koen@openembedded.org>
> ---
> recipes/udev/files/mount.sh | 2 +-
> recipes/udev/files/slugos/mount.sh | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/recipes/udev/files/mount.sh b/recipes/udev/files/mount.sh
> index be8b3df..440dcee 100644
> --- a/recipes/udev/files/mount.sh
> +++ b/recipes/udev/files/mount.sh
> @@ -64,7 +64,7 @@ fi
> if [ "$ACTION" = "remove" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then
> for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " `
> do
> - $UMOUNT $mnt
> + $UMOUNT -l $mnt
> done
>
> # Remove empty directories from auto-mounter
> diff --git a/recipes/udev/files/slugos/mount.sh b/recipes/udev/files/slugos/mount.sh
> index 0990a7e..b5298e9 100644
> --- a/recipes/udev/files/slugos/mount.sh
> +++ b/recipes/udev/files/slugos/mount.sh
> @@ -75,7 +75,7 @@ fi
> if [ "$ACTION" = "remove" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then
> for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " `
> do
> - $UMOUNT $mnt
> + $UMOUNT -l $mnt
> done
>
> # Remove empty directories from auto-mounter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMIbz5MkyGM64RGpERAt02AJ40tRHUFB92CtUl1Aygxf2Vl6IFTwCfYgUQ
VrKYoZrz8xUJxWkPt/Fq+QM=
=Gvcc
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] udev/mount.sh: use lazy umount
2010-06-23 7:51 ` Koen Kooi
@ 2010-06-23 12:05 ` Steffen Sledz
0 siblings, 0 replies; 3+ messages in thread
From: Steffen Sledz @ 2010-06-23 12:05 UTC (permalink / raw)
To: openembedded-devel
Am 23.06.2010 09:51, schrieb Koen Kooi:
> Acked-by: Koen Kooi <koen@openembedded.org>
OK, pushed.
Steffen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-23 12:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <111b01cb123eb0466e0MAN_POSIXLY_CORRECT=1Distant-earth.com>
2010-06-23 6:11 ` [PATCH v2] udev/mount.sh: use lazy umount Steffen Sledz
2010-06-23 7:51 ` Koen Kooi
2010-06-23 12:05 ` Steffen Sledz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox