summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2011-02-25 14:09:19 -0800
committerJim Meyering <meyering@redhat.com>2011-02-26 06:56:34 +0100
commit3dd52c822a40f9787765f21f7cbd6f1c37b42f7e (patch)
tree2fa96981b3ce2bfabbc9032ca0d5ce54e65b8f91 /include
parent7fc2cf02e1e6a4b02d989db68511224f1bc341c5 (diff)
downloadparted-3dd52c822a40f9787765f21f7cbd6f1c37b42f7e.tar.gz
gpt: add legacy_boot partition flag
Add support for the Legacy BIOS Bootable flag in the GPT Attribute field. This is used by software like syslinux to determine which partition to boot when in BIOS mode. See Page 105, Table 19 Bit 2 of the UEFI Spec 2.3 book. * doc/C/parted.8: Document legacy_boot. * doc/parted.texi: Document legacy_boot. * include/parted/disk.h: Add PED_PARTITION_LEGACY_BOOT flag. * libparted/disk.c (ped_partition_flag_get_name): Add legacy_boot flag. * libparted/labels/gpt.c (_parse_part_entry): (_partition_generate_part_entry, gpt_partition_new): (gpt_partition_set_flag, gpt_partition_get_flag): (gpt_partition_is_flag_available): Add legacy_boot flag support.
Diffstat (limited to 'include')
-rw-r--r--include/parted/disk.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/parted/disk.h b/include/parted/disk.h
index 3a1450c..dd461fb 100644
--- a/include/parted/disk.h
+++ b/include/parted/disk.h
@@ -69,10 +69,11 @@ enum _PedPartitionFlag {
PED_PARTITION_MSFT_RESERVED=11,
PED_PARTITION_BIOS_GRUB=12,
PED_PARTITION_APPLE_TV_RECOVERY=13,
- PED_PARTITION_DIAG=14
+ PED_PARTITION_DIAG=14,
+ PED_PARTITION_LEGACY_BOOT=15
};
#define PED_PARTITION_FIRST_FLAG PED_PARTITION_BOOT
-#define PED_PARTITION_LAST_FLAG PED_PARTITION_DIAG
+#define PED_PARTITION_LAST_FLAG PED_PARTITION_LEGACY_BOOT
enum _PedDiskTypeFeature {
PED_DISK_TYPE_EXTENDED=1, /**< supports extended partitions */