proxmox-backup/src/backup
Shannon Sterz 27dd73777f fix #3935: datastore/api/backup: move datastore locking to '/run'
to avoid issues when removing a group or snapshot directory where two
threads hold a lock to the same directory, move locking to the tmpfs
backed '/run' directory. also adds double stat'ing to make it possible
to remove locks without certain race condition issues.

this new mechanism is only employed when we can be sure, that a reboot
has occured so that all processes are using the new locking mechanism.
otherwise, two separate process could assume they have exclusive
rights to a group or snapshot.

bumps the rust version to 1.81 so we can use `std::fs::exists` without
issue.

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
 [TL: drop unused format_err import]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-03-26 16:21:43 +01:00
..
hierarchy.rs clippy: elide more lifetimes 2024-12-02 11:34:05 +01:00
mod.rs client/server: use dedicated api type for all archive names 2024-11-22 13:47:05 +01:00
verify.rs fix #3935: datastore/api/backup: move datastore locking to '/run' 2025-03-26 16:21:43 +01:00