tape: remove MediaLabelInfo, use MediaId instead
The additional content_uuid was quite useless...
This commit is contained in:
@ -29,7 +29,6 @@ use crate::{
|
||||
},
|
||||
tape::{
|
||||
TAPE_STATUS_DIR,
|
||||
MediaLabelInfo,
|
||||
file_formats::{
|
||||
MediaLabel,
|
||||
MediaSetLabel,
|
||||
@ -47,16 +46,6 @@ pub struct MediaId {
|
||||
pub media_set_label: Option<MediaSetLabel>,
|
||||
}
|
||||
|
||||
impl From<MediaLabelInfo> for MediaId {
|
||||
fn from(info: MediaLabelInfo) -> Self {
|
||||
Self {
|
||||
label: info.label.clone(),
|
||||
media_set_label: info.media_set_label.map(|(l, _)| l),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Media Set
|
||||
///
|
||||
/// A List of backup media
|
||||
|
Reference in New Issue
Block a user