mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-25 22:27:34 +00:00
close single tomb
This commit is contained in:
parent
f293d89fb8
commit
de283fde16
6
src/tomb
6
src/tomb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user