Crate disk

source ·
Expand description

VM disk image file format I/O.

Modules

Structs

  • Information about a partition to create.
  • 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.
  • A disk backed by a single file that implements AsyncDisk for access.

Enums

Constants

Traits

  • An asynchronously accessible disk.
  • The prerequisites necessary to support a block device.
  • A trait for getting the length of a disk image or raw block device.
  • A DiskFile that can be converted for asychronous access.

Functions

  • Create a new composite disk image containing the given partitions, and write it out to the given files.
  • Inspect the image file type and create an appropriate disk file to match it.
  • create an appropriate disk file to match give image type.
  • 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 the type of an image file by checking for a valid header of the supported formats.

Type Definitions