From 8002011f7c8c787a46ab9575d55ef3978e6c9a45 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 13 May 2024 12:46:09 +0200 Subject: [PATCH] tape: save 'bytes used' in tape inventory and show them on the ui. This can help uses with seeing how much a tape is used. The value is updated on 'commit' and when the tape is changed during a backup. For drives not supporting the volume statistics, this is simply skipped. Signed-off-by: Dominik Csapak --- pbs-api-types/src/tape/media.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pbs-api-types/src/tape/media.rs b/pbs-api-types/src/tape/media.rs index 6792cd3c..6227f463 100644 --- a/pbs-api-types/src/tape/media.rs +++ b/pbs-api-types/src/tape/media.rs @@ -81,6 +81,9 @@ pub struct MediaListEntry { /// Media Pool #[serde(skip_serializing_if = "Option::is_none")] pub pool: Option, + #[serde(skip_serializing_if = "Option::is_none")] + /// Bytes currently used + pub bytes_used: Option, } #[api(