Structs§
- Represents a composite virtual disk made out of multiple component files. This is described on disk by a protocol buffer file that lists out the component file locations and their offsets and lengths on the virtual disk. The spaces covered by the component disks must be contiguous and not overlapping.
- Information about a partition to create.
Enums§
- The type of partition.
Constants§
- A magic string placed at the beginning of a composite disk file to identify it.
- The version of the composite disk format supported by this implementation.
- The amount of padding needed between the last partition entry and the first partition, to align the partition appropriately. The two sectors are for the MBR and the GPT header.
Functions§
- Round
val
up to the next multiple of 2**align_log
. - Create one or more
ComponentDisk
proto messages for the given partition. - Create a new composite disk image containing the given partitions, and write it out to the given files.
- Create the
GptPartitionEntry
for the given partition. - 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)
- Write protective MBR and primary GPT table.
- Write secondary GPT table.