]> git.proxmox.com Git - proxmox-backup.git/commit
fix csum calculation of not 'chunk_size' aligned images
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 4 Jun 2020 08:12:10 +0000 (10:12 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Jun 2020 08:18:30 +0000 (10:18 +0200)
commita95a3fb8939efaa7c07e3836d71ba14e0a3c8a0b
tree0cd75d46515bab96c2e6f5ef80b38680ef03c100
parent620911b426a7ccba9095ad2f002b8111d7ceebb7
fix csum calculation of not 'chunk_size' aligned images

the last chunk does not have to be as big as the chunk_size,
just use the already available 'chunk_end' function which does the
correct thing

this fixes restoration of images whose sizes are not a multiple of
'chunk_size' as well

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/backup/fixed_index.rs