51e87b09cc
- Add support for legacy_boot flag for GPT partitions (680562) - Remove PED_ASSERT for dos geometry calculations (585468)
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
From e60879e2b781980842f940c39993cccc30cfc67b Mon Sep 17 00:00:00 2001
|
|
From: Brian C. Lane <bcl@redhat.com>
|
|
Date: Thu, 24 Feb 2011 17:02:45 -0800
|
|
Subject: [PATCH 1/2] Add GPT partition attribute bits
|
|
|
|
Add NoBlockIOProtocol and LegacyBIOSBootable flags to the GPT partition
|
|
Attributes entry.
|
|
---
|
|
libparted/labels/gpt.c | 8 ++++++--
|
|
1 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c
|
|
index b9ed5c3..0396ad7 100644
|
|
--- a/libparted/labels/gpt.c
|
|
+++ b/libparted/labels/gpt.c
|
|
@@ -163,12 +163,16 @@ struct __attribute__ ((packed)) _GuidPartitionEntryAttributes_t
|
|
{
|
|
#ifdef __GNUC__ /* XXX narrow this down to !TinyCC */
|
|
uint64_t RequiredToFunction:1;
|
|
- uint64_t Reserved:47;
|
|
+ uint64_t NoBlockIOProtocol:1;
|
|
+ uint64_t LegacyBIOSBootable:1;
|
|
+ uint64_t Reserved:45;
|
|
uint64_t GuidSpecific:16;
|
|
#else
|
|
# warning "Using crippled partition entry type"
|
|
uint32_t RequiredToFunction:1;
|
|
- uint32_t Reserved:32;
|
|
+ uint32_t NoBlockIOProtocol:1;
|
|
+ uint32_t LegacyBIOSBootable:1;
|
|
+ uint32_t Reserved:30;
|
|
uint32_t LOST:5;
|
|
uint32_t GuidSpecific:16;
|
|
#endif
|
|
--
|
|
1.7.4
|
|
|