From 6a5b3b5727845af0c5cef35dee3d8e8c69262fdc Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 11 Sep 2013 12:25:04 -0700 Subject: libparted: Add UEFI System Partition flag. This adds support for the ESP partition type on MS-DOS. It also aliases it to the boot flag on GPT which sets the ESP GUID type. * NEWS (New Features): Mention it. * doc/C/parted.8: Document esp flag. * doc/parted.texti: Document esp flag. * include/parted/disk.in.h (_PedPartitionFlag): Add PED_PARTITION_ESP flag * libparted/disk.c (ped_partition_flag_get_name): Add esp flag * libparted/labels/dos.c (DosPartitionData): Likewise (raw_part_parse): Likewise (msdos_partition_new): Likewise (msdos_partition_duplicate): Likewise (msdos_partition_set_system): Likewise (clear_flags): Likewise (msdos_partition_set_flag): Likewise (msdos_partition_get_flag): Likewise (msdos_partition_is_flag_available): Likewise * libparted/labels/gpt.c (gpt_partition_set_flag): Add PED_PARTITION_ESP (gpt_partition_get_flag): Likewise (gpt_partition_is_flag_available): Likewise --- include/parted/disk.in.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/parted/disk.in.h b/include/parted/disk.in.h index 585383d..d144e21 100644 --- a/include/parted/disk.in.h +++ b/include/parted/disk.in.h @@ -74,10 +74,11 @@ enum _PedPartitionFlag { PED_PARTITION_DIAG=14, PED_PARTITION_LEGACY_BOOT=15, PED_PARTITION_MSFT_DATA=16, - PED_PARTITION_IRST=17 + PED_PARTITION_IRST=17, + PED_PARTITION_ESP=18 }; #define PED_PARTITION_FIRST_FLAG PED_PARTITION_BOOT -#define PED_PARTITION_LAST_FLAG PED_PARTITION_IRST +#define PED_PARTITION_LAST_FLAG PED_PARTITION_ESP enum _PedDiskTypeFeature { PED_DISK_TYPE_EXTENDED=1, /**< supports extended partitions */ -- cgit v1.2.1