]> git.proxmox.com Git - proxmox-backup.git/blob - src/tape/mod.rs
tape: add tape device driver
[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 helpers;
10 pub use helpers::*;
11
12 mod inventory;
13 pub use inventory::*;
14
15 mod changer;
16 pub use changer::*;
17
18 mod drive;
19 pub use drive::*;
20
21 /// Directory path where we stora all status information
22 pub const MEDIA_POOL_STATUS_DIR: &str = "/var/lib/proxmox-backup/mediapool";
23
24 /// We limit chunk archive size, so that we can faster restore a
25 /// specific chunk (The catalog only store file numbers, so we
26 /// need to read the whole archive to restore a single chunk)
27 pub const MAX_CHUNK_ARCHIVE_SIZE: usize = 4*1024*1024*1024; // 4GB for now
28
29 /// To improve performance, we need to avoid tape drive buffer flush.
30 pub const COMMIT_BLOCK_SIZE: usize = 128*1024*1024*1024; // 128 GiB