This type is used internally by LVM, and is not directly available through the public LVM API. However, it is possible to access this data by means of the Read_Sectors and Write_Sectors functions.
#include <lvm_data.h> #define ACTIVE_PARTITION 0x80 #define EBR_BOOT_INDICATOR 0x0 typedef struct _Partition_Record { Byte Boot_Indicator; /* Active partition indicator */ Byte Starting_Head; /* Starting head of this partition */ Byte Starting_Sector; /* Starting sector (bits 0-5) and cylinder (bits 6-7) of this partition */ Byte Starting_Cylinder; /* Starting cylinder (combined with bits 6-7 of the previous field) */ Byte Format_Indicator; /* Indicates the filesystem/OS type of this partition */ Byte Ending_Head; /* Ending head of this partition */ Byte Ending_Sector; /* Ending sector (bits 0-5) and cylinder (bits 6-7) of this partition */ Byte Ending_Cylinder; /* Ending cylinder (combined with bits 6-7 of the previous field) */ DoubleWord Sector_Offset; /* The number of sectors on the disk prior to this partition */ DoubleWord Sector_Count; /* The number of sectors in this partition */ } Partition_Record;