]> git.proxmox.com Git - proxmox-backup.git/commit - src/backup/verify.rs
datastore: add manifest locking
authorStefan Reiter <s.reiter@proxmox.com>
Fri, 16 Oct 2020 07:31:12 +0000 (09:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 16 Oct 2020 07:34:12 +0000 (09:34 +0200)
commit1a374fcfd6274f3e5403501d89f20532a7c94aca
tree1ef051e64be5097d653b601a36da75374817560d
parente07620028da71e09c2c7fea853d1a0f25b73d528
datastore: add manifest locking

Avoid races when updating manifest data by flocking a lock file.
update_manifest is used to ensure updates always happen with the lock
held.

Snapshot deletion also acquires the lock, so it cannot interfere with an
outstanding manifest write.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/api2/admin/datastore.rs
src/api2/backup/environment.rs
src/backup/datastore.rs
src/backup/manifest.rs
src/backup/verify.rs