mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-03 01:18:02 +03:00
c57ac02879
Change detection mode set to metadata compares regular file entries metadata to the reference metadata archive of the previous run. The `pxar::format::Stat` as stored in `pxar::Metadata` however does not include the actual file size, it only partially stores information gathered from stating the file. This means however that the actual file size is never compared and therefore, that if the file size did change, but the other metadata information did not (including the mtime which might have been restored), that file will be incorrectly reused. A subsequent restore will however fail, because the expected file size as encoded in the metadata archive does not match the file size as stored in the payload archive. Fix this by adding the missing file size check, comparing the size for the given file against the one stored in the metadata archive. Link to issue reported in community forum: https://forum.proxmox.com/threads/158722/ Signed-off-by: Christian Ebner <c.ebner@proxmox.com> |
||
---|---|---|
.. | ||
pxar | ||
tools | ||
backup_reader.rs | ||
backup_repo.rs | ||
backup_specification.rs | ||
backup_stats.rs | ||
backup_writer.rs | ||
catalog_shell.rs | ||
chunk_stream.rs | ||
http_client.rs | ||
inject_reused_chunks.rs | ||
lib.rs | ||
merge_known_chunks.rs | ||
pipe_to_stream.rs | ||
pxar_backup_stream.rs | ||
remote_chunk_reader.rs | ||
task_log.rs | ||
vsock_client.rs |