]> git.proxmox.com Git - proxmox-backup.git/commit
verify: acquire shared snapshot flock and skip on error
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 14 Oct 2020 12:16:33 +0000 (14:16 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Oct 2020 05:09:34 +0000 (07:09 +0200)
commitbfa54f2e853021053a3abddcfc8d5dc1bf2d41fc
tree27ba8743789e9f6e5b93e0abbb5cd7a723214e4f
parent238a872d1f153084b8ca542bc0d7e18e504a96e9
verify: acquire shared snapshot flock and skip on error

If we can't acquire a lock (either because the snapshot disappeared, it
is about to be forgotten/pruned, or it is currently still running) skip
the snapshot. Hold the lock during verification, so that it cannot be
deleted while we are still verifying.

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