From eb8feb12811cb58071e4df0cb2e616807d5bb3ec Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 26 Dec 2020 10:48:32 +0100 Subject: [PATCH] tape: add LTO1 to TapeDensity --- src/api2/types/tape/drive.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api2/types/tape/drive.rs b/src/api2/types/tape/drive.rs index ffce55bb..f599f08a 100644 --- a/src/api2/types/tape/drive.rs +++ b/src/api2/types/tape/drive.rs @@ -119,6 +119,8 @@ pub struct MamAttribute { pub enum TapeDensity { /// No tape loaded None, + /// LTO1 + LTO1, /// LTO2 LTO2, /// LTO3 @@ -143,6 +145,7 @@ impl TryFrom for TapeDensity { fn try_from(value: u8) -> Result { let density = match value { 0x00 => TapeDensity::None, + 0x40 => TapeDensity::LTO1, 0x42 => TapeDensity::LTO2, 0x44 => TapeDensity::LTO3, 0x46 => TapeDensity::LTO4,