From e226ddcc90e26b8fe5fc928cb1f8cc4ee2dcdf55 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 13 May 2024 12:49:26 +0200 Subject: [PATCH] tape: include drive activity in status Since we don't query each drives status seperately, but rely on a single call to the drives listing parameter for that, we now add the option to query the activity there too. This makes that data avaiable for us to show in a seperate (by default hidden) column. Also we show the activity in the 'State' column when the drive is idle from our perspective. This is useful when e.g. an LTO-9 tape is loaded the first time and is calibrating, since that happens automatically. Signed-off-by: Dominik Csapak --- pbs-api-types/src/tape/drive.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pbs-api-types/src/tape/drive.rs b/pbs-api-types/src/tape/drive.rs index caa6b3b3..2b788bd6 100644 --- a/pbs-api-types/src/tape/drive.rs +++ b/pbs-api-types/src/tape/drive.rs @@ -93,6 +93,9 @@ pub struct DriveListEntry { /// the state of the drive if locked #[serde(skip_serializing_if = "Option::is_none")] pub state: Option, + /// Current device activity + #[serde(skip_serializing_if = "Option::is_none")] + pub activity: Option, } #[api()]