tape: add LTO1 to TapeDensity

This commit is contained in:
Dietmar Maurer 2020-12-26 10:48:32 +01:00
parent fc6ce9835b
commit eb8feb1281

View File

@ -119,6 +119,8 @@ pub struct MamAttribute {
pub enum TapeDensity { pub enum TapeDensity {
/// No tape loaded /// No tape loaded
None, None,
/// LTO1
LTO1,
/// LTO2 /// LTO2
LTO2, LTO2,
/// LTO3 /// LTO3
@ -143,6 +145,7 @@ impl TryFrom<u8> for TapeDensity {
fn try_from(value: u8) -> Result<Self, Self::Error> { fn try_from(value: u8) -> Result<Self, Self::Error> {
let density = match value { let density = match value {
0x00 => TapeDensity::None, 0x00 => TapeDensity::None,
0x40 => TapeDensity::LTO1,
0x42 => TapeDensity::LTO2, 0x42 => TapeDensity::LTO2,
0x44 => TapeDensity::LTO3, 0x44 => TapeDensity::LTO3,
0x46 => TapeDensity::LTO4, 0x46 => TapeDensity::LTO4,