proxmox-backup/pbs-datastore/src
Thomas Lamprecht 51d900d187 datastore: swap ConfigVersionCache with digest for change detection
We got the digest available anyway, and it's only 16 bytes more to
save (compared to last_generation and the recently removed last_time,
both being 64 bit = 8 bytes each)

Side benefit, we detect config changes made manually (e.g., `vim
datacenter.cfg`) immediately.

Note that we could restructure the maintenance mode checking to only
be done after checking if there's a cached datastore, in which case
using the generation could make sense to decide if we need to re-load
it again before blindly loading the config anyway. As that's not only
some (not exactly hard but not really trivial like a typo fix either)
restructuring work but also means we'd lose the "detect manual
changes" again I'd rather keep using the digest.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-06-04 15:26:50 +02:00
..
backup_info.rs update to nix 0.24 / rustyline 9 / proxmox-sys 0.3 2022-06-02 14:33:33 +02:00
cached_chunk_reader.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
catalog.rs Revert "fix #4001: datastore/catalog: add number of files to directory entry" 2022-05-16 17:51:35 +02:00
checksum_reader.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
checksum_writer.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
chunk_stat.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
chunk_store.rs datastore: reduce chunk store open visibility and comment pitfalls 2022-06-03 10:15:41 +02:00
chunker.rs add pbs-datastore module 2021-07-06 15:11:52 +02:00
crypt_reader.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
crypt_writer.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
data_blob.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
data_blob_reader.rs update to first proxmox crate split 2021-10-11 11:58:49 +02:00
data_blob_writer.rs update to first proxmox crate split 2021-10-11 11:58:49 +02:00
datastore.rs datastore: swap ConfigVersionCache with digest for change detection 2022-06-04 15:26:50 +02:00
dynamic_index.rs datastore: avoid unsafe transmute, use to_ne_bytes 2022-05-26 11:42:13 +02:00
file_formats.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
fixed_index.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
hierarchy.rs update to nix 0.24 / rustyline 9 / proxmox-sys 0.3 2022-06-02 14:33:33 +02:00
index.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
lib.rs datastore: move backup dir/group/namespace iter to own module 2022-05-15 15:59:43 +02:00
local_chunk_reader.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
manifest.rs datastore: clippy fixes 2022-05-15 16:01:09 +02:00
paperkey.rs tree-wide: fix needless borrows 2021-12-30 13:55:33 +01:00
prune.rs add prune jobs api 2022-05-30 13:58:43 +02:00
read_chunk.rs move chunk_stat, read_chunk to pbs-datastore 2021-07-09 10:40:14 +02:00
snapshot_reader.rs datastore: clippy fixes 2022-05-26 11:42:13 +02:00
store_progress.rs datastore: rustfmt whole package 2022-04-14 13:27:53 +02:00
task_tracking.rs datastore: add new Lookup for operations tracking 2022-05-12 11:36:56 +02:00