diff options
author | Brian C. Lane <bcl@redhat.com> | 2013-09-11 12:25:04 -0700 |
---|---|---|
committer | Phillip Susi <psusi@ubuntu.com> | 2014-03-02 19:16:40 -0500 |
commit | 6a5b3b5727845af0c5cef35dee3d8e8c69262fdc (patch) | |
tree | 1fa0eb10887413deb5fc3511e449a052f494f848 /include | |
parent | 4d0cd271069997e7d44ed3b52426ccf2570048c8 (diff) | |
download | parted-6a5b3b5727845af0c5cef35dee3d8e8c69262fdc.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/parted/disk.in.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |