pub struct DiskManager;Expand description
Disk + vvfat answer-file staging helpers.
Implementations§
Source§impl DiskManager
impl DiskManager
Sourcepub async fn create_base(
qemu_img: &Path,
path: &Path,
size_gb: u32,
) -> Result<()>
pub async fn create_base( qemu_img: &Path, path: &Path, size_gb: u32, ) -> Result<()>
Sparse base image: <qemu-img> create -f qcow2 <path> <size>G.
Pass "qemu-img" for PATH lookup or a portable tree’s
<root>/bin/qemu-img (see PortableQemu).
Sourcepub async fn create_overlay(
qemu_img: &Path,
base: &Path,
overlay: &Path,
) -> Result<()>
pub async fn create_overlay( qemu_img: &Path, base: &Path, overlay: &Path, ) -> Result<()>
Offline overlay: <qemu-img> create -f qcow2 -F qcow2 -b <base> <overlay>.
Caller must guarantee a clean shutdown of the base first (see plan §3.4).
Auto Trait Implementations§
impl Freeze for DiskManager
impl RefUnwindSafe for DiskManager
impl Send for DiskManager
impl Sync for DiskManager
impl Unpin for DiskManager
impl UnsafeUnpin for DiskManager
impl UnwindSafe for DiskManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more