From 4bb3876352c441b5b4b2e947148a51c37d0e2e63 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 3 Aug 2021 08:28:33 +0200 Subject: [PATCH] tape: lto: increase default timeout to 10 minutes 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 --- 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 ///