]> git.proxmox.com Git - proxmox-backup.git/commit - proxmox-restore-daemon/src/main.rs
file-restore-daemon: add disk module
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 31 Mar 2021 10:21:54 +0000 (12:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Apr 2021 12:03:54 +0000 (14:03 +0200)
commitd32a8652bd81e69be90ce351a778a47da750b786
tree557a031b478ffdfb6258e1ccc01f13c54bd3e779
parenta26ebad5f9487f4b96445cd51576c47ad5a5b541
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>
src/bin/proxmox-restore-daemon.rs
src/bin/proxmox_restore_daemon/disk.rs [new file with mode: 0644]
src/bin/proxmox_restore_daemon/mod.rs