tape: add command to read cartridge memory (MAM)

Thsi add an additional dependency to sg3-utils (small).
This commit is contained in:
Dietmar Maurer
2020-12-21 12:11:52 +01:00
parent 8001c82e81
commit 1e20f819d5
6 changed files with 271 additions and 0 deletions

View File

@ -99,3 +99,15 @@ pub struct DriveListEntry {
#[serde(skip_serializing_if="Option::is_none")]
pub serial: Option<String>,
}
#[api()]
#[derive(Serialize,Deserialize)]
/// Medium auxiliary memory attributes (MAM)
pub struct MamAttribute {
/// Attribute id
pub id: u16,
/// Attribute name
pub name: String,
/// Attribute value
pub value: String,
}