GPT.h File Reference
#include "PartInfo.h"
#include "Error.h"
#include "BlockDevice.h"
Include dependency graph for GPT.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Storage::Disk::GPT::SmingTypeGuid
 
class  Storage::Disk::GPT::PartitionTable
 

Namespaces

 Storage
 
 Storage::Disk
 
 Storage::Disk::GPT
 

Macros

#define EFI_PARTITION_TYPE_GUID_MAP(XX)
 
#define XX(name, ...)   extern const Uuid name##_GUID;
 

Functions

String Storage::Disk::GPT::getTypeName (const Uuid &typeGuid)
 Get string for known GPT type GUIDs. More...
 
Error Storage::Disk::formatDisk (BlockDevice &device, GPT::PartitionTable &table, const Uuid &diskGuid={})
 Partition a device using the GPT scheme. More...
 

Macro Definition Documentation

◆ EFI_PARTITION_TYPE_GUID_MAP

#define EFI_PARTITION_TYPE_GUID_MAP (   XX)
Value:
XX(PARTITION_SYSTEM, 0xC12A7328, 0xF81F, 0x11d2, 0xBA, 0x4B, 0x00, 0xA0, 0xC9, 0x3E, 0xC9, 0x3B) \
XX(LEGACY_MBR_PARTITION, 0x024DEE41, 0x33E7, 0x11d3, 0x9D, 0x69, 0x00, 0x08, 0xC7, 0x81, 0xF3, 0x9F) \
XX(PARTITION_MSFT_RESERVED, 0xE3C9E316, 0x0B5C, 0x4DB8, 0x81, 0x7D, 0xF9, 0x2D, 0xF0, 0x02, 0x15, 0xAE) \
XX(PARTITION_BASIC_DATA, 0xEBD0A0A2, 0xB9E5, 0x4433, 0x87, 0xC0, 0x68, 0xB6, 0xB7, 0x26, 0x99, 0xC7) \
XX(PARTITION_LINUX_RAID, 0xa19d880f, 0x05fc, 0x4d3b, 0xa0, 0x06, 0x74, 0x3f, 0x0f, 0x84, 0x91, 0x1e) \
XX(PARTITION_LINUX_SWAP, 0x0657fd6d, 0xa4ab, 0x43c4, 0x84, 0xe5, 0x09, 0x33, 0xc8, 0x4b, 0x4f, 0x4f) \
XX(PARTITION_LINUX_LVM, 0xe6d6d379, 0xf507, 0x44c2, 0xa2, 0x3c, 0x23, 0x8f, 0x2a, 0x3d, 0xf9, 0x28) \
XX(PARTITION_LINUX_DATA, 0x0fc63daf, 0x8483, 0x4772, 0x8e, 0x79, 0x3d, 0x69, 0xd8, 0x47, 0x7d, 0xe4)
#define XX(name,...)
Definition: GPT.h:67

◆ XX

#define XX (   name,
  ... 
)    extern const Uuid name##_GUID;