Module composite

Source

Structsยง

AsyncComponentDiskPart ๐Ÿ”’
AsyncCompositeDiskFile
ComponentDiskPart ๐Ÿ”’
CompositeDiskFile
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.
PartitionInfo
Information about a partition to create.

Enumsยง

Error
ImagePartitionType
The type of partition.

Constantsยง

CDISK_MAGIC
A magic string placed at the beginning of a composite disk file to identify it.
COMPOSITE_DISK_VERSION ๐Ÿ”’
The version of the composite disk format supported by this implementation.
EFI_SYSTEM_PARTITION_GUID ๐Ÿ”’
HEADER_PADDING_LENGTH ๐Ÿ”’
LINUX_FILESYSTEM_GUID ๐Ÿ”’
PARTITION_ALIGNMENT_SIZE ๐Ÿ”’
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.
PARTITION_SIZE_SHIFT ๐Ÿ”’

Functionsยง

create_component_disks ๐Ÿ”’
Create one or more ComponentDisk proto messages for the given partition.
create_composite_disk
Create a new composite disk image containing the given partitions, and write it out to the given files.
create_gpt_entry ๐Ÿ”’
Create the GptPartitionEntry for the given partition.
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)
range_intersection ๐Ÿ”’
ranges_overlap ๐Ÿ”’
write_beginning ๐Ÿ”’
Write protective MBR and primary GPT table.
write_end ๐Ÿ”’
Write secondary GPT table.

Type Aliasesยง

Result