tape: only query volume stats if we can read MAM
This commit is contained in:
parent
ef942e04c2
commit
c4b2b9ab41
@ -238,7 +238,6 @@ impl LinuxTapeHandle {
|
||||
status.manufactured = Some(usage.manufactured);
|
||||
status.bytes_read = Some(usage.bytes_read);
|
||||
status.bytes_written = Some(usage.bytes_written);
|
||||
}
|
||||
|
||||
if let Ok(volume_stats) = self.volume_statistics() {
|
||||
|
||||
@ -250,6 +249,7 @@ impl LinuxTapeHandle {
|
||||
status.volume_mounts = Some(volume_stats.volume_mounts);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(status)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user