move src/tape/helpers/snapshot_reader.rs to src/backup/snapshot_reader.rs
This commit is contained in:
parent
51a2d9e375
commit
cef5c72682
|
@ -35,14 +35,13 @@ use crate::{
|
||||||
compute_schedule_status,
|
compute_schedule_status,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
backup::DataStore,
|
backup::{DataStore, SnapshotReader},
|
||||||
server::WorkerTask,
|
server::WorkerTask,
|
||||||
tape::{
|
tape::{
|
||||||
TAPE_STATUS_DIR,
|
TAPE_STATUS_DIR,
|
||||||
Inventory,
|
Inventory,
|
||||||
PoolWriter,
|
PoolWriter,
|
||||||
MediaPool,
|
MediaPool,
|
||||||
SnapshotReader,
|
|
||||||
drive::{
|
drive::{
|
||||||
media_changer,
|
media_changer,
|
||||||
lock_tape_device,
|
lock_tape_device,
|
||||||
|
|
|
@ -12,3 +12,6 @@ pub use datastore::*;
|
||||||
|
|
||||||
mod verify;
|
mod verify;
|
||||||
pub use verify::*;
|
pub use verify::*;
|
||||||
|
|
||||||
|
mod snapshot_reader;
|
||||||
|
pub use snapshot_reader::SnapshotReader;
|
||||||
|
|
|
@ -12,12 +12,11 @@ use pbs_tape::{
|
||||||
TapeWrite, MediaContentHeader,
|
TapeWrite, MediaContentHeader,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::tape::{
|
use crate::backup::SnapshotReader;
|
||||||
SnapshotReader,
|
|
||||||
file_formats::{
|
use crate::tape::file_formats::{
|
||||||
PROXMOX_BACKUP_SNAPSHOT_ARCHIVE_MAGIC_1_1,
|
PROXMOX_BACKUP_SNAPSHOT_ARCHIVE_MAGIC_1_1,
|
||||||
SnapshotArchiveHeader,
|
SnapshotArchiveHeader,
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
mod snapshot_reader;
|
|
||||||
pub use snapshot_reader::*;
|
|
|
@ -14,9 +14,6 @@ mod test;
|
||||||
|
|
||||||
pub mod file_formats;
|
pub mod file_formats;
|
||||||
|
|
||||||
mod helpers;
|
|
||||||
pub use helpers::*;
|
|
||||||
|
|
||||||
mod media_set;
|
mod media_set;
|
||||||
pub use media_set::*;
|
pub use media_set::*;
|
||||||
|
|
||||||
|
|
|
@ -21,15 +21,12 @@ use pbs_tape::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
backup::{
|
backup::{DataStore, SnapshotReader},
|
||||||
DataStore,
|
|
||||||
},
|
|
||||||
server::WorkerTask,
|
server::WorkerTask,
|
||||||
tape::{
|
tape::{
|
||||||
TAPE_STATUS_DIR,
|
TAPE_STATUS_DIR,
|
||||||
MAX_CHUNK_ARCHIVE_SIZE,
|
MAX_CHUNK_ARCHIVE_SIZE,
|
||||||
COMMIT_BLOCK_SIZE,
|
COMMIT_BLOCK_SIZE,
|
||||||
SnapshotReader,
|
|
||||||
MediaPool,
|
MediaPool,
|
||||||
MediaId,
|
MediaId,
|
||||||
MediaCatalog,
|
MediaCatalog,
|
||||||
|
|
|
@ -5,13 +5,8 @@ use anyhow::{format_err, Error};
|
||||||
|
|
||||||
use pbs_datastore::DataBlob;
|
use pbs_datastore::DataBlob;
|
||||||
|
|
||||||
use crate::{
|
use crate::backup::{DataStore, SnapshotReader};
|
||||||
backup::DataStore,
|
use crate::tape::CatalogSet;
|
||||||
tape::{
|
|
||||||
CatalogSet,
|
|
||||||
SnapshotReader,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Chunk iterator which use a separate thread to read chunks
|
/// Chunk iterator which use a separate thread to read chunks
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue