tape: improve catalog consistency checks
Try to check if we read the correct catalog by verifying uuid, media_set_uuid and seq_nr. Note: this changes the catalog format again.
This commit is contained in:
@ -213,6 +213,17 @@ pub struct SnapshotArchiveHeader {
|
||||
pub store: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
/// Header for Catalog archives
|
||||
pub struct CatalogArchiveHeader {
|
||||
/// The uuid of the media the catalog is for
|
||||
pub uuid: Uuid,
|
||||
/// The media set uuid the catalog is for
|
||||
pub media_set_uuid: Uuid,
|
||||
/// Media sequence number
|
||||
pub seq_nr: u64,
|
||||
}
|
||||
|
||||
#[derive(Serialize,Deserialize,Clone,Debug)]
|
||||
/// Media Label
|
||||
///
|
||||
|
Reference in New Issue
Block a user