[pbs-devel] applied: [PATCH proxmox-backup] tape: lto: increase default timeout to 10 minutes

Dietmar Maurer dietmar at proxmox.com
Tue Aug 3 09:19:37 CEST 2021


applied

On 8/3/21 8:28 AM, Dominik Csapak wrote:
> it seems that for some actions or in some circumstances, two minutes is
> simply too short and the command aborts. Increase the default timeout to
> 10 minutes.
>
> While it should give most commands enough time to finish, in case of a real
> failure the procedure now takes up to 5 times longer, but IMHO thats an
> OK tradeoff.
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>   src/tape/drive/lto/sg_tape.rs | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/tape/drive/lto/sg_tape.rs b/src/tape/drive/lto/sg_tape.rs
> index 4508f6f3..893ece5d 100644
> --- a/src/tape/drive/lto/sg_tape.rs
> +++ b/src/tape/drive/lto/sg_tape.rs
> @@ -130,7 +130,7 @@ pub struct SgTape {
>   
>   impl SgTape {
>   
> -    const SCSI_TAPE_DEFAULT_TIMEOUT: usize = 60*2; // 2 minutes
> +    const SCSI_TAPE_DEFAULT_TIMEOUT: usize = 60*10; // 10 minutes
>   
>       /// Create a new instance
>       ///





More information about the pbs-devel mailing list