file-restore-daemon: add disk module

Includes functionality for scanning and referring to partitions on
attached disks (i.e. snapshot images).

Fairly modular structure, so adding ZFS/LVM/etc... support in the future
should be easy.

The path is encoded as "/disk/bucket/component/path/to/file", e.g.
"/drive-scsi0/part/0/etc/passwd". See the comments for further
explanations on the design.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter
2021-03-31 12:21:54 +02:00
committed by Thomas Lamprecht
parent a26ebad5f9
commit d32a8652bd
3 changed files with 347 additions and 1 deletions

View File

@ -6,3 +6,6 @@ pub mod auth;
mod watchdog;
pub use watchdog::*;
mod disk;
pub use disk::*;