[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] Add GPT partition attribute bits
From: |
Brian C. Lane |
Subject: |
[PATCH 1/2] Add GPT partition attribute bits |
Date: |
Fri, 25 Feb 2011 14:09:18 -0800 |
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
- [PATCH 1/2] Add GPT partition attribute bits,
Brian C. Lane <=