[pbs-devel] [PATCH proxmox-backup] api2/tape/backup: wait indefinitely for lock in scheduled backup jobs
Dietmar Maurer
dietmar at proxmox.com
Thu Mar 18 06:53:50 CET 2021
> - // early check/lock before starting worker
> - let drive_lock = lock_tape_device(&drive_config, &setup.drive)?;
> + // for scheduled jobs we acquire the lock later in the worker
> + let drive_lock = if schedule.is_some() {
> + None
> + } else {
> + Some(lock_tape_device(&drive_config, &setup.drive)?)
> + };
What is the reason for the different locking times? Can't we always lock
later in the worker?
More information about the pbs-devel
mailing list