[pbs-devel] applied: [PATCH proxmox-backup v2] tape/drive: improve tape device locking behaviour

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jun 2 17:09:03 CEST 2021


On 02.06.21 14:19, Dominik Csapak wrote:
> by implementing a custom error type that is either 'TimeOut' or
> 'Other'.
> 
> In the api, check in the worker loop for exactly 'TimeOut' errors and continue only
> then. All other errors lead to a aborted task.
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> changes from v1:
> * implement custom error types, so that we can detect the one
>   special error condition more cleanly
> 
>  src/api2/tape/backup.rs | 14 +++++++++-----
>  src/tape/drive/mod.rs   | 34 +++++++++++++++++++++++++++++-----
>  2 files changed, 38 insertions(+), 10 deletions(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list