OSDN Git Service

gpt: add partition attribute bits: NoBlockIOProtocol, LegacyBIOSBootable
authorBrian C. Lane <bcl@redhat.com>
Fri, 25 Feb 2011 22:09:18 +0000 (14:09 -0800)
committerJim Meyering <meyering@redhat.com>
Sat, 26 Feb 2011 05:48:34 +0000 (06:48 +0100)
Add NoBlockIOProtocol and LegacyBIOSBootable flags to the GPT partition
Attributes entry.

libparted/labels/gpt.c

index fad352f..46e6077 100644 (file)
@@ -166,12 +166,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