Skip to main content

Module disk

Module disk 

Source
Expand description

Block device abstraction (wda read-only distro image, wdb persistent writable ext4 overlay disk) and native KWSPARS1 (optional gzip) sparse disk template unpacker.

Structs§

BlockDevice
Host block device backing /dev/wda, /dev/wdb, etc.
DiskSnapshot
Cloneable in-memory snapshot of a block device’s 4 KiB COW overlay anchored to base_path. Allows branching multiple independent VMs from an exact ext4 rootfs state in < 1 ms.

Constants§

F_DISCARD
F_FLUSH
F_RO
F_WRITE_ZEROES

Functions§

create_disk_from_kwsparse
Create a sparse ext4 disk file at dest from a bundled unkernel.datadisk (KWSPARS1, gzipped or raw). Written atomically via a temporary sibling file.