2020-12-05 09:45:08 +00:00
|
|
|
pub mod file_formats;
|
2020-12-05 09:51:34 +00:00
|
|
|
|
|
|
|
mod tape_write;
|
|
|
|
pub use tape_write::*;
|
2020-12-05 09:54:38 +00:00
|
|
|
|
|
|
|
mod tape_read;
|
|
|
|
pub use tape_read::*;
|
2020-12-05 11:20:46 +00:00
|
|
|
|
2020-12-06 08:41:16 +00:00
|
|
|
mod helpers;
|
|
|
|
pub use helpers::*;
|
|
|
|
|
2020-12-05 11:53:08 +00:00
|
|
|
mod inventory;
|
|
|
|
pub use inventory::*;
|
|
|
|
|
2020-12-05 13:46:57 +00:00
|
|
|
mod changer;
|
|
|
|
pub use changer::*;
|
|
|
|
|
2020-12-05 11:20:46 +00:00
|
|
|
/// Directory path where we stora all status information
|
|
|
|
pub const MEDIA_POOL_STATUS_DIR: &str = "/var/lib/proxmox-backup/mediapool";
|
|
|
|
|
|
|
|
/// We limit chunk archive size, so that we can faster restore a
|
|
|
|
/// specific chunk (The catalog only store file numbers, so we
|
|
|
|
/// need to read the whole archive to restore a single chunk)
|
|
|
|
pub const MAX_CHUNK_ARCHIVE_SIZE: usize = 4*1024*1024*1024; // 4GB for now
|
|
|
|
|
|
|
|
/// To improve performance, we need to avoid tape drive buffer flush.
|
|
|
|
pub const COMMIT_BLOCK_SIZE: usize = 128*1024*1024*1024; // 128 GiB
|