add .loop extension to /dev/mapper volume to identify its nature

This commit is contained in:
Jaromil 2020-11-16 09:56:38 +01:00
parent 9be5dff823
commit 72da5b481e

2
tomb
View File

@ -655,7 +655,7 @@ render_mapper() {
[[ "$TOMBNAME" == "" ]] &&
_failure "cannot render mapper: missing \$TOMBNAME"
local maphash=`realpath $tombpath | sha256sum -z`
mapper="tomb.$TOMBNAME.${maphash[(w)1]}"
mapper="tomb.$TOMBNAME.${maphash[(w)1]}.loop"
local mounted_tombs=(`list_tomb_mounts`)
local usedmapper
for t in ${mounted_tombs}; do