mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-25 14:17:41 +00:00
fix tomb list output
This commit is contained in:
parent
285f3c3a07
commit
c13f38266e
6
tomb
6
tomb
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user