Go to file
Dominik Csapak 391ec76798 fix backing up images that are not multiples of 'chunk_size'
by removing the client side checks

since the backup server has to check those things anyway, there is
little benefit of checking it here, but poses a risk that there
are two diverging checks for the client and server

especially the next to last check (end_offset > device_size) was
wrong, since we do not actually check the size of the actual chunk
(which would be 'size'), but the generic set chunk size (defaults to 4M)
which is obviously wrong (the last chunk is probably smaller)

since it is not needed anymore, we can omit to get the 'device_size'

fixes an issue where we could not backup an image which was not
4M aligned (or smaller than 4M altogether)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-04 07:00:06 +02:00
.cargo update all dependencies 2020-02-12 13:01:20 +01:00
debian bump version to 0.1.5-1 2020-06-02 12:18:59 +02:00
src fix backing up images that are not multiples of 'chunk_size' 2020-06-04 07:00:06 +02:00
build.rs build.rs: .with_include_guard("PROXMOX_BACKUP_QEMU_H") 2020-03-10 11:21:16 +01:00
Cargo.toml update proxmox-backup crate to 0.2.2 2020-06-03 17:22:41 +02:00
header-preamble.c header-preamble.c: add result parameter 2019-10-25 07:00:18 +02:00
Makefile Makefile: upload to pve instead of pbs product 2020-03-03 08:04:07 +01:00
simpletest.c simpletest.c: correctly handle write errors 2020-02-13 12:18:54 +01:00