fix tomb list output

This commit is contained in:
Jaromil 2020-11-25 14:47:43 +01:00
parent 285f3c3a07
commit c13f38266e

6
tomb
View File

@ -2434,7 +2434,7 @@ list_tombs() {
tombloop=${mapper[(ws:.:)4]} tombloop=${mapper[(ws:.:)4]}
# calculate tomb size # calculate tomb size
ts=`df -hP /dev/mapper/$TOMBMAPPER | ts=`df -hP /dev/mapper/$mapper |
awk "/mapper/"' { print $2 ";" $3 ";" $4 ";" $5 }'` awk "/mapper/"' { print $2 ";" $3 ";" $4 ";" $5 }'`
tombtot=${ts[(ws:;:)1]} tombtot=${ts[(ws:;:)1]}
tombused=${ts[(ws:;:)2]} tombused=${ts[(ws:;:)2]}
@ -2481,8 +2481,8 @@ awk "/mapper/"' { print $2 ";" $3 ";" $4 ";" $5 }'`
# Now check hooks # Now check hooks
mounted_hooks=(`list_tomb_binds $tombname $tombmount`) mounted_hooks=(`list_tomb_binds $tombname $tombmount`)
for h in ${mounted_hooks}; do for h in ${mounted_hooks}; do
_message "::1 tombname:: hooks ::2 hookname:: on ::3 hookdest::" \ _message "::1 tombname:: hooks ::2 hookdest::" \
$tombname "`basename ${h[(ws:;:)1]}`" ${h[(ws:;:)2]} $tombname ${h[(ws:;:)2]}
done done
done done
} }