]> git.proxmox.com Git - proxmox-backup.git/blob - src/tape/mod.rs
tape: add media invenotry
[proxmox-backup.git] / src / tape / mod.rs
1 pub mod file_formats;
2
3 mod tape_write;
4 pub use tape_write::*;
5
6 mod tape_read;
7 pub use tape_read::*;
8
9 mod inventory;
10 pub use inventory::*;
11
12 /// Directory path where we stora all status information
13 pub const MEDIA_POOL_STATUS_DIR: &str = "/var/lib/proxmox-backup/mediapool";
14
15 /// We limit chunk archive size, so that we can faster restore a
16 /// specific chunk (The catalog only store file numbers, so we
17 /// need to read the whole archive to restore a single chunk)
18 pub const MAX_CHUNK_ARCHIVE_SIZE: usize = 4*1024*1024*1024; // 4GB for now
19
20 /// To improve performance, we need to avoid tape drive buffer flush.
21 pub const COMMIT_BLOCK_SIZE: usize = 128*1024*1024*1024; // 128 GiB