Expand description
Functions for writing GUID Partition Tables for use in a composite disk image.
Structsยง
- GptHeader ๐
- GptPartition
Entry - A GPT entry for a particular partition.
Enumsยง
Constantsยง
- GPT_
BEGINNING_ SIZE - The size in bytes of everything before the first partition: i.e. the MBR, GPT header and GPT partition entries.
- GPT_
END_ SIZE - The size in bytes of everything after the last partition: i.e. the GPT partition entries and GPT footer.
- GPT_
HEADER_ SIZE - The size in bytes of a GPT header.
- GPT_
NUM_ PARTITIONS - The number of partition entries in the GPT, which is the maximum number of partitions which are supported.
- GPT_
PARTITION_ ENTRY_ SIZE - The size in bytes of a single GPT partition entry.
- MBR_
PARTITION_ ๐ENTRY_ SIZE - The size in bytes on an MBR partition entry.
- SECTOR_
SIZE - The size in bytes of a disk sector (also called a block).
Functionsยง
- write_
gpt_ header - Write a GPT header for the disk.
- write_
guid ๐ - Write a UUID in the mixed-endian format which GPT uses for GUIDs.
- write_
protective_ mbr - Write a protective MBR for a disk of the given total size (in bytes).