tape: return media usage info with status command

This commit is contained in:
Dietmar Maurer
2020-12-23 11:24:34 +01:00
parent dbe7e556b0
commit 5ae86dfaa1
5 changed files with 78 additions and 22 deletions

View File

@ -166,8 +166,8 @@ impl TryFrom<u8> for TapeDensity {
)]
#[derive(Serialize,Deserialize)]
#[serde(rename_all = "kebab-case")]
/// Drive status for Linux SCSI drives.
pub struct LinuxDriveStatusFlat {
/// Drive/Media status for Linux SCSI drives.
pub struct LinuxDriveAndMediaStatus {
/// Block size (0 is variable size)
pub blocksize: u32,
/// Tape density
@ -178,4 +178,10 @@ pub struct LinuxDriveStatusFlat {
pub file_number: i32,
/// Current block number
pub block_number: i32,
/// Medium Manufacture Date (epoch)
pub manufactured: i64,
/// Total Bytes Read in Medium Life
pub bytes_read: u64,
/// Total Bytes Written in Medium Life
pub bytes_written: u64,
}