tAvoid proceeding to umount if a bind_mount is busy and close is not slamming. - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 4788ee6834a111c284e2a24954406bb0cdc1b488
DIR parent 88c51f89f0d473d3a0e5416cb5dd3cf870437381
HTML Author: Jaromil <jaromil@dyne.org>
Date: Sat, 17 Jan 2015 02:29:57 +0100
Avoid proceeding to umount if a bind_mount is busy and close is not slamming.
Diffstat:
M tomb | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
DIR diff --git a/tomb b/tomb
t@@ -2392,12 +2392,11 @@ umount_tomb() {
sudo umount $bind_mount || {
[[ -n $SLAM ]] && {
_success "Slamming tomb: killing all processes using this hook."
- slam_tomb "$bind_mount"
- [[ $? == 1 ]] && {
- _failure "Cannot slam the bind hook ::1 hook::" $bind_mount }
- umount $bind_mount
+ slam_tomb "$bind_mount" || _failure "Cannot slam the bind hook ::1 hook::" $bind_mount
+ umount $bind_mount || _failure "Cannot slam the bind hook ::1 hook::" $bind_mount
} || {
- _warning "Tomb bind hook ::1 hook:: is busy, cannot close tomb." $bind_mount }
+ _failure "Tomb bind hook ::1 hook:: is busy, cannot close tomb." $bind_mount
+ }
}
done