move src/backup/read_chunk.rs to pbs-datastore/src/local_chunk_reader.rs

This commit is contained in:
Dietmar Maurer 2021-09-27 11:10:14 +02:00
parent c95c1c83b0
commit 8a23ea4656
4 changed files with 11 additions and 9 deletions

View File

@ -201,3 +201,6 @@ pub use datastore::{check_backup_owner, DataStore};
mod snapshot_reader; mod snapshot_reader;
pub use snapshot_reader::SnapshotReader; pub use snapshot_reader::SnapshotReader;
mod local_chunk_reader;
pub use local_chunk_reader::LocalChunkReader;

View File

@ -6,9 +6,10 @@ use anyhow::{bail, Error};
use pbs_tools::crypt_config::CryptConfig; use pbs_tools::crypt_config::CryptConfig;
use pbs_api_types::CryptMode; use pbs_api_types::CryptMode;
use pbs_datastore::data_blob::DataBlob;
use pbs_datastore::read_chunk::{ReadChunk, AsyncReadChunk}; use crate::data_blob::DataBlob;
use pbs_datastore::DataStore; use crate::read_chunk::{ReadChunk, AsyncReadChunk};
use crate::DataStore;
#[derive(Clone)] #[derive(Clone)]
pub struct LocalChunkReader { pub struct LocalChunkReader {

View File

@ -39,7 +39,10 @@ use pbs_api_types::{ Authid, BackupContent, Counts, CryptMode,
}; };
use pbs_client::pxar::create_zip; use pbs_client::pxar::create_zip;
use pbs_datastore::{check_backup_owner, DataStore, BackupDir, BackupGroup, StoreProgress, CATALOG_NAME}; use pbs_datastore::{
check_backup_owner, DataStore, BackupDir, BackupGroup, StoreProgress, LocalChunkReader,
CATALOG_NAME,
};
use pbs_datastore::backup_info::BackupInfo; use pbs_datastore::backup_info::BackupInfo;
use pbs_datastore::cached_chunk_reader::CachedChunkReader; use pbs_datastore::cached_chunk_reader::CachedChunkReader;
use pbs_datastore::catalog::{ArchiveEntry, CatalogReader}; use pbs_datastore::catalog::{ArchiveEntry, CatalogReader};
@ -60,7 +63,6 @@ use proxmox_rest_server::{WorkerTask, formatter};
use crate::api2::node::rrd::create_value_from_rrd; use crate::api2::node::rrd::create_value_from_rrd;
use crate::backup::{ use crate::backup::{
verify_all_backups, verify_backup_group, verify_backup_dir, verify_filter, verify_all_backups, verify_backup_group, verify_backup_dir, verify_filter,
LocalChunkReader,
}; };
use crate::server::jobstate::Job; use crate::server::jobstate::Job;

View File

@ -3,9 +3,5 @@
// Note: .pcat1 => Proxmox Catalog Format version 1 // Note: .pcat1 => Proxmox Catalog Format version 1
pub const CATALOG_NAME: &str = "catalog.pcat1.didx"; pub const CATALOG_NAME: &str = "catalog.pcat1.didx";
// Split
mod read_chunk;
pub use read_chunk::*;
mod verify; mod verify;
pub use verify::*; pub use verify::*;