close single tomb

This commit is contained in:
Jaromil 2011-02-24 22:59:54 +01:00
parent f293d89fb8
commit de283fde16

View File

@ -780,8 +780,13 @@ umount_tomb() {
if [ "$how_many_tombs" = "0" ]; then
error "there is no open tomb to be closed"
return 1
elif [ "$how_many_tombs" = "1" ]; then
mapper=`find /dev/mapper -name 'tomb.*'`
notice "trying to close $mapper"
umount_tomb ${mapper}
return 1
else
error "too many tombs mounted, please specify which to unmount:"
ls /dev/mapper/tomb.*
@ -803,6 +808,7 @@ umount_tomb() {
return 0
fi
if [ -r "$1" ]; then # accepts relative and absolute path
mapper="$1"
elif [ -r /dev/mapper/${1} ]; then