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" == "" ]] && [[ "$TOMBNAME" == "" ]] &&
_failure "cannot render mapper: missing \$TOMBNAME" _failure "cannot render mapper: missing \$TOMBNAME"
local maphash=`realpath $tombpath | sha256sum -z` 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 mounted_tombs=(`list_tomb_mounts`)
local usedmapper local usedmapper
for t in ${mounted_tombs}; do for t in ${mounted_tombs}; do