mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-04-07 10:11:51 +00:00
better close messages
This commit is contained in:
parent
ac0dcd9acc
commit
bdef8853d5
4
src/tomb
4
src/tomb
@ -739,7 +739,7 @@ umount_tomb() {
|
|||||||
return 1
|
return 1
|
||||||
elif [ "$how_many_tombs" = "1" ]; then
|
elif [ "$how_many_tombs" = "1" ]; then
|
||||||
#mapper=`find /dev/mapper -name 'tomb.*'`
|
#mapper=`find /dev/mapper -name 'tomb.*'`
|
||||||
notice "Closing $tombs"
|
func "closing mapper $tombs"
|
||||||
umount_tomb ${tombs}
|
umount_tomb ${tombs}
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
@ -846,7 +846,7 @@ umount_tomb() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $tombmount ]; then # tomb is actively mounted
|
if [ $tombmount ]; then # tomb is actively mounted
|
||||||
act "closing tomb $tombname mounted on $tombmount"
|
func "performing umount of $tombmount"
|
||||||
umount ${tombmount} 2> /dev/null
|
umount ${tombmount} 2> /dev/null
|
||||||
if ! [ $? = 0 ]; then
|
if ! [ $? = 0 ]; then
|
||||||
error "Tomb is busy, cannot umount!"
|
error "Tomb is busy, cannot umount!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user