proxmox-backup/pbs-datastore
Dominik Csapak dd612daab0 chunk_store: insert_chunk: write chunk again if it is empty on disk
and issue a warning. We can do this, because we know an empty chunk
cannot be valid, and we (assumedly) have a valid chunk in memory.

Having empty chunks on disk is currently possible when PBS crashes,
but the rename of the chunk was flushed to disk, when the actual data
was not.

If it's not empty but there is a size mismatch, return an error.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-05-10 08:47:40 +02:00
..
examples reference the datastore in BackupGroup/Dir 2022-04-20 15:31:04 +02:00
src chunk_store: insert_chunk: write chunk again if it is empty on disk 2022-05-10 08:47:40 +02:00
Cargo.toml bump proxmox-schema dependency to 1.3.1 for streaming attribute 2022-04-13 08:20:27 +02:00