move src/tape/helpers/snapshot_reader.rs to src/backup/snapshot_reader.rs

This commit is contained in:
Dietmar Maurer 2021-09-14 07:42:06 +02:00
parent 51a2d9e375
commit cef5c72682
8 changed files with 12 additions and 24 deletions

View File

@ -35,14 +35,13 @@ use crate::{
compute_schedule_status,
},
},
backup::DataStore,
backup::{DataStore, SnapshotReader},
server::WorkerTask,
tape::{
TAPE_STATUS_DIR,
Inventory,
PoolWriter,
MediaPool,
SnapshotReader,
drive::{
media_changer,
lock_tape_device,

View File

@ -12,3 +12,6 @@ pub use datastore::*;
mod verify;
pub use verify::*;
mod snapshot_reader;
pub use snapshot_reader::SnapshotReader;

View File

@ -12,12 +12,11 @@ use pbs_tape::{
TapeWrite, MediaContentHeader,
};
use crate::tape::{
SnapshotReader,
file_formats::{
use crate::backup::SnapshotReader;
use crate::tape::file_formats::{
PROXMOX_BACKUP_SNAPSHOT_ARCHIVE_MAGIC_1_1,
SnapshotArchiveHeader,
},
};

View File

@ -1,2 +0,0 @@
mod snapshot_reader;
pub use snapshot_reader::*;

View File

@ -14,9 +14,6 @@ mod test;
pub mod file_formats;
mod helpers;
pub use helpers::*;
mod media_set;
pub use media_set::*;

View File

@ -21,15 +21,12 @@ use pbs_tape::{
};
use crate::{
backup::{
DataStore,
},
backup::{DataStore, SnapshotReader},
server::WorkerTask,
tape::{
TAPE_STATUS_DIR,
MAX_CHUNK_ARCHIVE_SIZE,
COMMIT_BLOCK_SIZE,
SnapshotReader,
MediaPool,
MediaId,
MediaCatalog,

View File

@ -5,13 +5,8 @@ use anyhow::{format_err, Error};
use pbs_datastore::DataBlob;
use crate::{
backup::DataStore,
tape::{
CatalogSet,
SnapshotReader,
},
};
use crate::backup::{DataStore, SnapshotReader};
use crate::tape::CatalogSet;
/// Chunk iterator which use a separate thread to read chunks
///