Expand description
VM disk image file format I/O.
Modulesยง
- android_
sparse ๐ - asynchronous ๐
- Asynchronous disk image helpers.
- composite ๐
- gpt ๐
- Functions for writing GUID Partition Tables for use in a composite disk image.
- qcow ๐
- sys ๐
- zstd ๐
- Use seekable zstd archive of raw disk image as read only disk
Structsยง
- Disk
File Params - Partition
Info - Information about a partition to create.
- Qcow
File - Represents a qcow2 file. This is a sparse file format maintained by the qemu project. Full documentation of the format can be found in the qemu repository.
- Single
File Disk - A disk backed by a single file that implements
AsyncDiskfor access.
Enumsยง
- Composite
Error - Error
- GptError
- Image
Partition Type - The type of partition.
- Image
Type - The variants of image files on the host that can be used as virtual disks.
Constantsยง
- MAX_
NESTING_ ๐DEPTH - Nesting depth limit for disk formats that can open other disk files.
- QCOW_
MAGIC
Traitsยง
- Async
Disk - An asynchronously accessible disk.
- Disk
File - The prerequisites necessary to support a block device.
- Disk
GetLen - A trait for getting the length of a disk image or raw block device.
- ToAsync
Disk - A
DiskFilethat can be converted for asychronous access.
Functionsยง
- create_
composite_ disk - Create a new composite disk image containing the given partitions, and write it out to the given files.
- create_
zero_ filler - Create a zero filler file which can be used to fill the gaps between partition files. The filler is sized to be big enough to fill the gaps. (1 << PARTITION_SIZE_SHIFT)
- detect_
image_ type - Detect the type of an image file by checking for a valid header of the supported formats.
- open_
disk_ file - Inspect the image file type and create an appropriate disk file to match it.