tape: add LTO1 to TapeDensity
This commit is contained in:
parent
fc6ce9835b
commit
eb8feb1281
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user