move src/backup/snapshot_reader.rs to pbs_datastore crate

This commit is contained in:
Dietmar Maurer
2021-09-27 09:58:20 +02:00
parent b446fa14c5
commit c95c1c83b0
7 changed files with 13 additions and 17 deletions

View File

@ -11,8 +11,7 @@ use pbs_tape::{
PROXMOX_TAPE_BLOCK_SIZE,
TapeWrite, MediaContentHeader,
};
use crate::backup::SnapshotReader;
use pbs_datastore::SnapshotReader;
use crate::tape::file_formats::{
PROXMOX_BACKUP_SNAPSHOT_ARCHIVE_MAGIC_1_1,

View File

@ -19,11 +19,10 @@ use pbs_tape::{
TapeWrite,
sg_tape::tape_alert_flags_critical,
};
use pbs_datastore::DataStore;
use pbs_datastore::{DataStore, SnapshotReader};
use proxmox_rest_server::WorkerTask;
use crate::{
backup::SnapshotReader,
tape::{
TAPE_STATUS_DIR,
MAX_CHUNK_ARCHIVE_SIZE,

View File

@ -3,9 +3,8 @@ use std::sync::{Arc, Mutex};
use anyhow::{format_err, Error};
use pbs_datastore::{DataStore, DataBlob};
use pbs_datastore::{DataStore, DataBlob, SnapshotReader};
use crate::backup::SnapshotReader;
use crate::tape::CatalogSet;
/// Chunk iterator which use a separate thread to read chunks