proxmox-backup/src/pxar
Dominik Csapak 5499bd3dee fix #2998: encode mtime as i64 instead of u64
saves files mtime as i64 instead of u64 which enables backup of
files with negative mtime

the catalog_decode_i64 is compatible to encoded u64 values (if < 2^63)
but not reverse, so all "old" catalogs can be read with the new
decoder, but catalogs that contain negative mtimes will decode wrongly
on older clients

also remove the arbitrary maximum value of 2^63 - 1 for
encode_u64 (we just use up to 10 bytes now) and correctly
decode them and update the comments accordingly

adds also test for i64 encode/decode and for compatibility between
u64 encode and i64 decode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-29 08:51:10 +01:00
..
catalog.rs fix #2998: encode mtime as i64 instead of u64 2020-10-29 08:51:10 +01:00
create.rs fix #2998: encode mtime as i64 instead of u64 2020-10-29 08:51:10 +01:00
dir_stack.rs pxar: make extractor state more reusable 2020-06-16 10:32:13 +02:00
extract.rs pxar/extract: fixup path stack for errors 2020-08-03 12:20:30 +02:00
flags.rs pxar: restore file attributes, improve errors 2020-07-14 10:25:45 +02:00
fuse.rs more clippy fixups 2020-10-14 13:58:35 +02:00
metadata.rs pxar: better error handling on extract 2020-08-03 09:40:55 +02:00
mod.rs turn pxar::flags into bitflags, pxar::Flags 2020-06-10 11:05:53 +02:00
tools.rs avoid chrono dependency, depend on proxmox 0.3.8 2020-09-15 07:12:57 +02:00