use realpath to always use absolute paths of tomb files in maphash

This commit is contained in:
Jaromil 2020-11-15 10:23:50 +01:00
parent 59d3810665
commit 9be5dff823

2
tomb
View File

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