proxmox-backup/src/server
Dominik Csapak 5b358ff0b1 server/prune_job: fix locking during prune jobs
removing the backup dir must acquire the snapshot lock, else it can
happen that we remove a snapshot while it is being restored
or backed up to tape

the original commit that adds the force flag
(c9756b40d1)
mentions that the prune checks itself if the snapshot is in use,
but i could not find such code, so simply set force to false

to avoid failing and aborting the prune job, warn if it could not
and continue

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-06-02 17:04:49 +02:00
..
auth.rs server/rest: add ApiAuth trait to make user auth generic 2021-04-08 13:57:57 +02:00
command_socket.rs refactor send_command 2021-05-11 16:28:08 +02:00
config.rs enable tape backup by default 2021-04-12 12:31:56 +02:00
email_notifications.rs api2/tape/backup: list backed up snapshots on failed backup notification 2021-04-23 16:25:17 +02:00
environment.rs clippy: remove unnecessary clones 2021-01-20 16:22:59 +01:00
formatter.rs depend on proxmox 0.1.31 - use Value to store result metadata 2020-05-18 09:57:35 +02:00
gc_job.rs clippy: convert single match to if let 2021-01-20 16:23:54 +01:00
h2service.rs allow complex Futures in tower_service impl 2021-01-26 09:53:55 +01:00
jobstate.rs reorder serde usage/derive 2021-05-31 14:53:08 +02:00
prune_job.rs server/prune_job: fix locking during prune jobs 2021-06-02 17:04:49 +02:00
report.rs report: type-alias function call tuple 2021-01-26 09:53:43 +01:00
rest.rs server/rest: fix new type ambiguity 2021-04-22 21:24:44 +02:00
state.rs followup: server/state: rename task_count to internal_task_count 2020-07-24 12:11:39 +02:00
ticket.rs clippy: use strip_prefix instead of manual stripping 2021-01-20 16:22:59 +01:00
upid.rs replace Userid with Authid 2020-10-29 15:11:39 +01:00
verify_job.rs verify: factor out common parameters 2021-01-26 09:54:49 +01:00
worker_task.rs refactor send_command 2021-05-11 16:28:08 +02:00