From unknown Mon Jun 23 18:30:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15528: [PATCH] GPT: add support for PReP GUID Resent-From: Avik Sil Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Fri, 04 Oct 2013 21:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15528 X-GNU-PR-Package: parted X-GNU-PR-Keywords: patch To: parted-devel@lists.alioth.debian.org, 15528@debbugs.gnu.org Cc: dbkreling@br.ibm.com X-Debbugs-Original-To: parted-devel@lists.alioth.debian.org, bug-parted@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.138092286418315 (code B ref -1); Fri, 04 Oct 2013 21:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2013 21:41:04 +0000 Received: from localhost ([127.0.0.1]:54686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSD7O-0004lJ-TW for submit@debbugs.gnu.org; Fri, 04 Oct 2013 17:41:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VS1WT-0000Wm-5t for submit@debbugs.gnu.org; Fri, 04 Oct 2013 05:18:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS1WI-0003RL-D7 for submit@debbugs.gnu.org; Fri, 04 Oct 2013 05:18:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS1WI-0003RF-A9 for submit@debbugs.gnu.org; Fri, 04 Oct 2013 05:17:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS1W9-0006JB-9W for bug-parted@gnu.org; Fri, 04 Oct 2013 05:17:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS1W0-0003Pq-24 for bug-parted@gnu.org; Fri, 04 Oct 2013 05:17:49 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:56718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS1Vz-0003Oo-Cp for bug-parted@gnu.org; Fri, 04 Oct 2013 05:17:39 -0400 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 Oct 2013 19:17:28 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp05.au.ibm.com (202.81.31.211) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 4 Oct 2013 19:17:25 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 57BAD3578050 for ; Fri, 4 Oct 2013 19:17:14 +1000 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r949H21D7274896 for ; Fri, 4 Oct 2013 19:17:03 +1000 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r949HDYm005945 for ; Fri, 4 Oct 2013 19:17:13 +1000 Received: from aviksil-thinkpad.in.ibm.com ([9.79.192.156]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r949H2Cs005629; Fri, 4 Oct 2013 19:17:12 +1000 From: Avik Sil Date: Fri, 4 Oct 2013 14:47:02 +0530 Message-Id: <1380878222-7085-1-git-send-email-aviksil@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.11.7 X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13100409-1396-0000-0000-000003A65088 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Fri, 04 Oct 2013 17:41:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) From: Daniel Battaiola Kreling A new GUID 9e1a2d38-c612-4316-aa26-8b49521e5a8b for PReP partition is proposed to be included in GPT. --- libparted/labels/gpt.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c index 490de70..ee8148d 100644 --- a/libparted/labels/gpt.c +++ b/libparted/labels/gpt.c @@ -146,6 +146,10 @@ typedef struct ((efi_guid_t) { PED_CPU_TO_LE32 (0x5265636F), PED_CPU_TO_LE16 (0x7665), \ PED_CPU_TO_LE16 (0x11AA), 0xaa, 0x11, \ { 0x00, 0x30, 0x65, 0x43, 0xEC, 0xAC }}) +#define PARTITION_PREP_GUID \ + ((efi_guid_t) { PED_CPU_TO_LE32 (0x9e1a2d38), PED_CPU_TO_LE16 (0xc612), \ + PED_CPU_TO_LE16 (0x4316), 0xaa, 0x26, \ + { 0x8b, 0x49, 0x52, 0x1e, 0x5a, 0x8b }}) struct __attribute__ ((packed)) _GuidPartitionTableHeader_t { @@ -288,6 +292,7 @@ typedef struct _GPTPartitionData int atvrecv; int msftrecv; int legacy_boot; + int prep; } GPTPartitionData; static PedDiskType gpt_disk_type; @@ -796,6 +801,7 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_t *pte) = gpt_part_data->msftdata = gpt_part_data->msftrecv = gpt_part_data->legacy_boot + = gpt_part_data->prep = gpt_part_data->bios_grub = gpt_part_data->atvrecv = 0; if (pte->Attributes.RequiredToFunction & 0x1) @@ -821,6 +827,8 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_t *pte) gpt_part_data->msftrecv = 1; else if (!guid_cmp (gpt_part_data->type, PARTITION_APPLE_TV_RECOVERY_GUID)) gpt_part_data->atvrecv = 1; + else if (!guid_cmp (gpt_part_data->type, PARTITION_PREP_GUID)) + gpt_part_data->prep = 1; return part; } @@ -1338,6 +1346,7 @@ gpt_partition_new (const PedDisk *disk, gpt_part_data->msftrecv = 0; gpt_part_data->atvrecv = 0; gpt_part_data->legacy_boot = 0; + gpt_part_data->prep = 0; uuid_generate ((unsigned char *) &gpt_part_data->uuid); swap_uuid_and_efi_guid ((unsigned char *) (&gpt_part_data->uuid)); memset (gpt_part_data->name, 0, sizeof gpt_part_data->name); @@ -1411,6 +1420,11 @@ gpt_partition_set_system (PedPartition *part, gpt_part_data->type = PARTITION_RAID_GUID; return 1; } + if (gpt_part_data->prep) + { + gpt_part_data->type = PARTITION_PREP_GUID; + return 1; + } if (gpt_part_data->boot) { gpt_part_data->type = PARTITION_SYSTEM_GUID; @@ -1587,6 +1601,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_BIOS_GRUB: @@ -1599,6 +1614,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_RAID: @@ -1611,6 +1627,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_LVM: @@ -1623,6 +1640,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_HPSERVICE: @@ -1635,6 +1653,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_MSFT_RESERVED: @@ -1647,6 +1666,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_MSFT_DATA: @@ -1659,6 +1679,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftres = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; gpt_part_data->msftdata = 1; } else { @@ -1675,6 +1696,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftdata = gpt_part_data->msftres + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_APPLE_TV_RECOVERY: @@ -1687,8 +1709,21 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftres = gpt_part_data->msftdata + = gpt_part_data->prep = gpt_part_data->msftrecv = 0; return gpt_partition_set_system (part, part->fs_type); + case PED_PARTITION_PREP: + gpt_part_data->prep = state; + if (state) + gpt_part_data->boot + = gpt_part_data->raid + = gpt_part_data->lvm + = gpt_part_data->bios_grub + = gpt_part_data->hp_service + = gpt_part_data->msftres + = gpt_part_data->msftrecv + = gpt_part_data->atvrecv = 0; + return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_HIDDEN: gpt_part_data->hidden = state; return 1; @@ -1735,6 +1770,8 @@ gpt_partition_get_flag (const PedPartition *part, PedPartitionFlag flag) return gpt_part_data->hidden; case PED_PARTITION_LEGACY_BOOT: return gpt_part_data->legacy_boot; + case PED_PARTITION_PREP: + return gpt_part_data->prep; case PED_PARTITION_SWAP: case PED_PARTITION_LBA: case PED_PARTITION_ROOT: @@ -1761,6 +1798,7 @@ gpt_partition_is_flag_available (const PedPartition *part, case PED_PARTITION_APPLE_TV_RECOVERY: case PED_PARTITION_HIDDEN: case PED_PARTITION_LEGACY_BOOT: + case PED_PARTITION_PREP: return 1; case PED_PARTITION_SWAP: case PED_PARTITION_ROOT: -- 1.7.11.7 From unknown Mon Jun 23 18:30:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15528: [parted-devel] [PATCH] GPT: add support for PReP GUID Resent-From: "Elliott, Robert (Server Storage)" Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Fri, 04 Oct 2013 23:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15528 X-GNU-PR-Package: parted X-GNU-PR-Keywords: patch To: aviksil@linux.vnet.ibm.com, parted-devel@lists.alioth.debian.org, 15528@debbugs.gnu.org Cc: "dbkreling@br.ibm.com" X-Debbugs-Original-To: Avik Sil , "parted-devel@lists.alioth.debian.org" , "bug-parted@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.138092925727904 (code B ref -1); Fri, 04 Oct 2013 23:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2013 23:27:37 +0000 Received: from localhost ([127.0.0.1]:54862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSEmW-0007Fz-Gb for submit@debbugs.gnu.org; Fri, 04 Oct 2013 19:27:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44678) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VS6Eo-0002jj-Ta for submit@debbugs.gnu.org; Fri, 04 Oct 2013 10:20:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS6Eg-0000fG-RI for submit@debbugs.gnu.org; Fri, 04 Oct 2013 10:20:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS6Eg-0000f1-Nt for submit@debbugs.gnu.org; Fri, 04 Oct 2013 10:20:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS6EY-0003NH-VN for bug-parted@gnu.org; Fri, 04 Oct 2013 10:20:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS6ER-0000QK-RF for bug-parted@gnu.org; Fri, 04 Oct 2013 10:19:58 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:11963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS6ER-0000Ns-IN for bug-parted@gnu.org; Fri, 04 Oct 2013 10:19:51 -0400 Received: from G9W0364.americas.hpqcorp.net (g9w0364.houston.hp.com [16.216.193.45]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by g4t0015.houston.hp.com (Postfix) with ESMTPS id E804F80B6; Fri, 4 Oct 2013 14:19:43 +0000 (UTC) Received: from G4W6306.americas.hpqcorp.net (16.210.26.231) by G9W0364.americas.hpqcorp.net (16.216.193.45) with Microsoft SMTP Server (TLS) id 14.3.123.3; Fri, 4 Oct 2013 14:19:06 +0000 Received: from G4W3202.americas.hpqcorp.net ([169.254.2.215]) by G4W6306.americas.hpqcorp.net ([16.210.26.231]) with mapi id 14.03.0123.003; Fri, 4 Oct 2013 14:19:06 +0000 From: "Elliott, Robert (Server Storage)" Thread-Topic: [parted-devel] [PATCH] GPT: add support for PReP GUID Thread-Index: AQHOwQoPGddmk4+6j0GyCsHHJybeE5nklv2A Date: Fri, 4 Oct 2013 14:19:04 +0000 Message-ID: <94D0CD8314A33A4D9D801C0FE68B402953F48495@G4W3202.americas.hpqcorp.net> References: <1380878222-7085-1-git-send-email-aviksil@linux.vnet.ibm.com> In-Reply-To: <1380878222-7085-1-git-send-email-aviksil@linux.vnet.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [16.210.48.37] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Fri, 04 Oct 2013 19:27:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) You might want to include a comment somewhere explaining what PReP is ("Pow= erPC Reference Platform"). --- Rob Elliott HP Server Storage > -----Original Message----- > From: parted-devel [mailto:parted-devel- > bounces+elliott=3Dhp.com@lists.alioth.debian.org] On Behalf Of Avik Sil > Sent: Friday, 04 October, 2013 4:17 AM > To: parted-devel@lists.alioth.debian.org; bug-parted@gnu.org > Cc: dbkreling@br.ibm.com > Subject: [parted-devel] [PATCH] GPT: add support for PReP GUID >=20 > From: Daniel Battaiola Kreling >=20 > A new GUID 9e1a2d38-c612-4316-aa26-8b49521e5a8b for PReP partition > is proposed to be included in GPT. > --- > libparted/labels/gpt.c | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) >=20 > diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c > index 490de70..ee8148d 100644 > --- a/libparted/labels/gpt.c > +++ b/libparted/labels/gpt.c > @@ -146,6 +146,10 @@ typedef struct > ((efi_guid_t) { PED_CPU_TO_LE32 (0x5265636F), PED_CPU_TO_LE16 > (0x7665), \ > PED_CPU_TO_LE16 (0x11AA), 0xaa, 0x11, \ > { 0x00, 0x30, 0x65, 0x43, 0xEC, 0xAC }}) > +#define PARTITION_PREP_GUID \ > + ((efi_guid_t) { PED_CPU_TO_LE32 (0x9e1a2d38), PED_CPU_TO_LE16 > (0xc612), \ > + PED_CPU_TO_LE16 (0x4316), 0xaa, 0x26, \ > + { 0x8b, 0x49, 0x52, 0x1e, 0x5a, 0x8b }}) >=20 > struct __attribute__ ((packed)) _GuidPartitionTableHeader_t > { > @@ -288,6 +292,7 @@ typedef struct _GPTPartitionData > int atvrecv; > int msftrecv; > int legacy_boot; > + int prep; > } GPTPartitionData; >=20 > static PedDiskType gpt_disk_type; > @@ -796,6 +801,7 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_= t > *pte) > =3D gpt_part_data->msftdata > =3D gpt_part_data->msftrecv > =3D gpt_part_data->legacy_boot > + =3D gpt_part_data->prep > =3D gpt_part_data->bios_grub =3D gpt_part_data->atvrecv =3D 0; >=20 > if (pte->Attributes.RequiredToFunction & 0x1) > @@ -821,6 +827,8 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_= t > *pte) > gpt_part_data->msftrecv =3D 1; > else if (!guid_cmp (gpt_part_data->type, > PARTITION_APPLE_TV_RECOVERY_GUID)) > gpt_part_data->atvrecv =3D 1; > + else if (!guid_cmp (gpt_part_data->type, PARTITION_PREP_GUID)) > + gpt_part_data->prep =3D 1; >=20 > return part; > } > @@ -1338,6 +1346,7 @@ gpt_partition_new (const PedDisk *disk, > gpt_part_data->msftrecv =3D 0; > gpt_part_data->atvrecv =3D 0; > gpt_part_data->legacy_boot =3D 0; > + gpt_part_data->prep =3D 0; > uuid_generate ((unsigned char *) &gpt_part_data->uuid); > swap_uuid_and_efi_guid ((unsigned char *) (&gpt_part_data->uuid)); > memset (gpt_part_data->name, 0, sizeof gpt_part_data->name); > @@ -1411,6 +1420,11 @@ gpt_partition_set_system (PedPartition *part, > gpt_part_data->type =3D PARTITION_RAID_GUID; > return 1; > } > + if (gpt_part_data->prep) > + { > + gpt_part_data->type =3D PARTITION_PREP_GUID; > + return 1; > + } > if (gpt_part_data->boot) > { > gpt_part_data->type =3D PARTITION_SYSTEM_GUID; > @@ -1587,6 +1601,7 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->msftres > =3D gpt_part_data->msftdata > =3D gpt_part_data->msftrecv > + =3D gpt_part_data->prep > =3D gpt_part_data->atvrecv =3D 0; > return gpt_partition_set_system (part, part->fs_type); > case PED_PARTITION_BIOS_GRUB: > @@ -1599,6 +1614,7 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->msftres > =3D gpt_part_data->msftdata > =3D gpt_part_data->msftrecv > + =3D gpt_part_data->prep > =3D gpt_part_data->atvrecv =3D 0; > return gpt_partition_set_system (part, part->fs_type); > case PED_PARTITION_RAID: > @@ -1611,6 +1627,7 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->msftres > =3D gpt_part_data->msftdata > =3D gpt_part_data->msftrecv > + =3D gpt_part_data->prep > =3D gpt_part_data->atvrecv =3D 0; > return gpt_partition_set_system (part, part->fs_type); > case PED_PARTITION_LVM: > @@ -1623,6 +1640,7 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->msftres > =3D gpt_part_data->msftdata > =3D gpt_part_data->msftrecv > + =3D gpt_part_data->prep > =3D gpt_part_data->atvrecv =3D 0; > return gpt_partition_set_system (part, part->fs_type); > case PED_PARTITION_HPSERVICE: > @@ -1635,6 +1653,7 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->msftres > =3D gpt_part_data->msftdata > =3D gpt_part_data->msftrecv > + =3D gpt_part_data->prep > =3D gpt_part_data->atvrecv =3D 0; > return gpt_partition_set_system (part, part->fs_type); > case PED_PARTITION_MSFT_RESERVED: > @@ -1647,6 +1666,7 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->hp_service > =3D gpt_part_data->msftdata > =3D gpt_part_data->msftrecv > + =3D gpt_part_data->prep > =3D gpt_part_data->atvrecv =3D 0; > return gpt_partition_set_system (part, part->fs_type); > case PED_PARTITION_MSFT_DATA: > @@ -1659,6 +1679,7 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->hp_service > =3D gpt_part_data->msftres > =3D gpt_part_data->msftrecv > + =3D gpt_part_data->prep > =3D gpt_part_data->atvrecv =3D 0; > gpt_part_data->msftdata =3D 1; > } else { > @@ -1675,6 +1696,7 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->hp_service > =3D gpt_part_data->msftdata > =3D gpt_part_data->msftres > + =3D gpt_part_data->prep > =3D gpt_part_data->atvrecv =3D 0; > return gpt_partition_set_system (part, part->fs_type); > case PED_PARTITION_APPLE_TV_RECOVERY: > @@ -1687,8 +1709,21 @@ gpt_partition_set_flag (PedPartition *part, > PedPartitionFlag flag, int state) > =3D gpt_part_data->hp_service > =3D gpt_part_data->msftres > =3D gpt_part_data->msftdata > + =3D gpt_part_data->prep > =3D gpt_part_data->msftrecv =3D 0; > return gpt_partition_set_system (part, part->fs_type); > + case PED_PARTITION_PREP: > + gpt_part_data->prep =3D state; > + if (state) > + gpt_part_data->boot > + =3D gpt_part_data->raid > + =3D gpt_part_data->lvm > + =3D gpt_part_data->bios_grub > + =3D gpt_part_data->hp_service > + =3D gpt_part_data->msftres > + =3D gpt_part_data->msftrecv > + =3D gpt_part_data->atvrecv =3D 0; > + return gpt_partition_set_system (part, part->fs_type); > case PED_PARTITION_HIDDEN: > gpt_part_data->hidden =3D state; > return 1; > @@ -1735,6 +1770,8 @@ gpt_partition_get_flag (const PedPartition *part, > PedPartitionFlag flag) > return gpt_part_data->hidden; > case PED_PARTITION_LEGACY_BOOT: > return gpt_part_data->legacy_boot; > + case PED_PARTITION_PREP: > + return gpt_part_data->prep; > case PED_PARTITION_SWAP: > case PED_PARTITION_LBA: > case PED_PARTITION_ROOT: > @@ -1761,6 +1798,7 @@ gpt_partition_is_flag_available (const PedPartition > *part, > case PED_PARTITION_APPLE_TV_RECOVERY: > case PED_PARTITION_HIDDEN: > case PED_PARTITION_LEGACY_BOOT: > + case PED_PARTITION_PREP: > return 1; > case PED_PARTITION_SWAP: > case PED_PARTITION_ROOT: > -- > 1.7.11.7 >=20 From unknown Mon Jun 23 18:30:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15528: [parted-devel] [PATCH] GPT: add support for PReP GUID Resent-From: Avik Sil Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Mon, 07 Oct 2013 06:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15528 X-GNU-PR-Package: parted X-GNU-PR-Keywords: patch To: "Elliott, Robert (Server Storage)" Cc: parted-devel@lists.alioth.debian.org, 15528@debbugs.gnu.org, dbkreling@br.ibm.com X-Debbugs-Original-Cc: "parted-devel@lists.alioth.debian.org" , "bug-parted@gnu.org" , "dbkreling@br.ibm.com" Received: via spool by submit@debbugs.gnu.org id=B.138112703917831 (code B ref -1); Mon, 07 Oct 2013 06:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Oct 2013 06:23:59 +0000 Received: from localhost ([127.0.0.1]:59082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VT4EZ-0004dW-AU for submit@debbugs.gnu.org; Mon, 07 Oct 2013 02:23:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34925) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VT4EW-0004dL-Q2 for submit@debbugs.gnu.org; Mon, 07 Oct 2013 02:23:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT4EM-0004eI-Gn for submit@debbugs.gnu.org; Mon, 07 Oct 2013 02:23:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT4EM-0004eE-Do for submit@debbugs.gnu.org; Mon, 07 Oct 2013 02:23:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT4ED-0004Aa-Fn for bug-parted@gnu.org; Mon, 07 Oct 2013 02:23:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT4E4-0004WC-Hx for bug-parted@gnu.org; Mon, 07 Oct 2013 02:23:37 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:42090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT4E3-0004VU-TI for bug-parted@gnu.org; Mon, 07 Oct 2013 02:23:28 -0400 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 7 Oct 2013 11:53:25 +0530 Received: from d28dlp03.in.ibm.com (9.184.220.128) by e28smtp07.in.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 7 Oct 2013 11:53:23 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 96626125803F for ; Mon, 7 Oct 2013 11:53:44 +0530 (IST) Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r976Prd442336292 for ; Mon, 7 Oct 2013 11:55:53 +0530 Received: from d28av04.in.ibm.com (localhost [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r976NMmZ021722 for ; Mon, 7 Oct 2013 11:53:22 +0530 Received: from [9.124.35.22] (aviksil-thinkpad.in.ibm.com [9.124.35.22]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r976NMdR021707; Mon, 7 Oct 2013 11:53:22 +0530 Message-ID: <52525359.5060106@linux.vnet.ibm.com> Date: Mon, 07 Oct 2013 11:53:21 +0530 From: Avik Sil User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 References: <1380878222-7085-1-git-send-email-aviksil@linux.vnet.ibm.com> <94D0CD8314A33A4D9D801C0FE68B402953F48495@G4W3202.americas.hpqcorp.net> In-Reply-To: <94D0CD8314A33A4D9D801C0FE68B402953F48495@G4W3202.americas.hpqcorp.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13100706-8878-0000-0000-00000921D76C X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) On 10/04/2013 07:49 PM, Elliott, Robert (Server Storage) wrote: > You might want to include a comment somewhere explaining what PReP is ("PowerPC Reference Platform"). Resent the patch with explanation of PReP in the commit message. Regards, Avik > > --- > Rob Elliott HP Server Storage > > From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 23 20:13:48 2013 Received: (at control) by debbugs.gnu.org; 24 Nov 2013 01:13:48 +0000 Received: from localhost ([127.0.0.1]:40906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkOGi-00051y-7z for submit@debbugs.gnu.org; Sat, 23 Nov 2013 20:13:48 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:62779) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkOGg-00051b-4n for control@debbugs.gnu.org; Sat, 23 Nov 2013 20:13:46 -0500 X-Authority-Analysis: v=2.0 cv=D/fF24tj c=1 sm=0 a=3SewDSjaRW4vdJyuxQ33ZQ==:17 a=DeBnktw0k-IA:10 a=JlIHnqCoHBcA:10 a=S1A5HrydsesA:10 a=8nJEP1OIZ-IA:10 a=fxJcL_dCAAAA:8 a=KGjhK52YXX0A:10 a=QfKxxUxMAAAA:8 a=UwDY9KAZIIJKjTf4HJwA:9 a=wPNLvfGTeEIA:10 a=gG3FGwM-grwA:10 a=3SewDSjaRW4vdJyuxQ33ZQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 72.238.73.171 Received: from [72.238.73.171] ([72.238.73.171:42940] helo=[192.168.1.6]) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 66/B4-20755-4C251925; Sun, 24 Nov 2013 01:13:40 +0000 Message-ID: <529152C4.8000504@ubuntu.com> Date: Sat, 23 Nov 2013 20:13:40 -0500 From: Phillip Susi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: control@debbugs.gnu.org X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 merge 15528 15548 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCgAGBQJSkVLEAAoJEJrBOlT6nu75GEkH/0CN2VsSsTW1oNAAWEtqDJHh 5ID5K0HrV36Uw+5UWOvcOYTrlij1UuXnAlQzcPFDgi1P6ZyyXUGX68FDZ7PB7DPi Ia6IeCybfBbwVBvB0LwOrfCHgMf9fVPw97HOGORkLbyTJyCM+Xpi9yqNJw/DNhKQ 7bIYYJLsaR3bHNGk3YSnfikB5LgtCk7Ke3qv13w4vg7AHSXUPwqqbBJpnI+4FgHN 2Wr8ynEWQIWSXycMfNOlYmKEzQbzMLyMd8Om/B1wzSssUKV6eiwS6Ql8A/SHenev cBnu6rSreKE6ALP9oV6Pn58z1F7rzyHU02ZNkoBloWCjyePPVdCxxyxEIA1zQLA= =iN5n -----END PGP SIGNATURE----- [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [75.180.132.120 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 merge 15528 15548 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCgAGBQJSkVLEAAoJEJrBOlT6nu75GEkH/0CN2VsSsTW1oNAAWEtqDJHh 5ID5K0HrV36Uw+5UWOvcOYTrlij1UuXnAlQzcPFDgi1P6ZyyXUGX68FDZ7PB7DPi Ia6IeCybfBbwVBvB0LwOrfCHgMf9fVPw97HOGORkLbyTJyCM+Xpi9yqNJw/DNhKQ 7bIYYJLsaR3bHNGk3YSnfikB5LgtCk7Ke3qv13w4vg7AHSXUPwqqbBJpnI+4FgHN 2Wr8ynEWQIWSXycMfNOlYmKEzQbzMLyMd8Om/B1wzSssUKV6eiwS6Ql8A/SHenev cBnu6rSreKE6ALP9oV6Pn58z1F7rzyHU02ZNkoBloWCjyePPVdCxxyxEIA1zQLA= =iN5n -----END PGP SIGNATURE----- [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [75.180.132.120 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 merge 15528 15548 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCgAGBQJSkVLEAAoJEJrBOlT6nu75GEkH/0CN2VsSsTW1oNAAWEtqDJHh 5ID5K0HrV36Uw+5UWOvcOYTrlij1UuXnAlQzcPFDgi1P6ZyyXUGX68FDZ7PB7DPi Ia6IeCybfBbwVBvB0LwOrfCHgMf9fVPw97HOGORkLbyTJyCM+Xpi9yqNJw/DNhKQ 7bIYYJLsaR3bHNGk3YSnfikB5LgtCk7Ke3qv13w4vg7AHSXUPwqqbBJpnI+4FgHN 2Wr8ynEWQIWSXycMfNOlYmKEzQbzMLyMd8Om/B1wzSssUKV6eiwS6Ql8A/SHenev cBnu6rSreKE6ALP9oV6Pn58z1F7rzyHU02ZNkoBloWCjyePPVdCxxyxEIA1zQLA= =iN5n -----END PGP SIGNATURE----- From unknown Mon Jun 23 18:30:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Avik Sil Subject: bug#15528: closed (Re: bug#15528: [parted-devel] [PATCH] GPT: add support for PReP GUID) Message-ID: References: <52916660.20906@ubuntu.com> <1380878222-7085-1-git-send-email-aviksil@linux.vnet.ibm.com> X-Gnu-PR-Message: they-closed 15528 X-Gnu-PR-Package: parted X-Gnu-PR-Keywords: patch Reply-To: 15528@debbugs.gnu.org Date: Sun, 24 Nov 2013 02:38:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1385260683-31782-1" This is a multi-part message in MIME format... ------------=_1385260683-31782-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15528: [PATCH] GPT: add support for PReP GUID which was filed against the parted package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15528@debbugs.gnu.org. --=20 15528: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15528 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1385260683-31782-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 15528-done) by debbugs.gnu.org; 24 Nov 2013 02:37:29 +0000 Received: from localhost ([127.0.0.1]:41023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkPZg-0008Fe-CM for submit@debbugs.gnu.org; Sat, 23 Nov 2013 21:37:28 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:34011) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkPZd-0008FO-U7 for 15528-done@debbugs.gnu.org; Sat, 23 Nov 2013 21:37:26 -0500 X-Authority-Analysis: v=2.0 cv=D/fF24tj c=1 sm=0 a=3SewDSjaRW4vdJyuxQ33ZQ==:17 a=DeBnktw0k-IA:10 a=JlIHnqCoHBcA:10 a=BOHRDoL6FGkA:10 a=S1A5HrydsesA:10 a=8nJEP1OIZ-IA:10 a=fxJcL_dCAAAA:8 a=KGjhK52YXX0A:10 a=I6nCQHyi_sUA:10 a=QfKxxUxMAAAA:8 a=9fOTct3aJ6dhWUspLf0A:9 a=wPNLvfGTeEIA:10 a=D0t-N9hpAQYA:10 a=3SewDSjaRW4vdJyuxQ33ZQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 72.238.73.171 Received: from [72.238.73.171] ([72.238.73.171:42961] helo=[192.168.1.6]) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 35/EA-20755-06661925; Sun, 24 Nov 2013 02:37:20 +0000 Message-ID: <52916660.20906@ubuntu.com> Date: Sat, 23 Nov 2013 21:37:20 -0500 From: Phillip Susi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: 15528-done@debbugs.gnu.org Subject: Re: bug#15528: [parted-devel] [PATCH] GPT: add support for PReP GUID References: <1380878222-7085-1-git-send-email-aviksil@linux.vnet.ibm.com> <94D0CD8314A33A4D9D801C0FE68B402953F48495@G4W3202.americas.hpqcorp.net> In-Reply-To: <94D0CD8314A33A4D9D801C0FE68B402953F48495@G4W3202.americas.hpqcorp.net> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15528-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Committed, with some documentation added. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCgAGBQJSkWZfAAoJEJrBOlT6nu75jsAH/3tPnQstAlcPl2BT0hMrIkWz SxCaXaOT2qzKYkvfQACt7Cl7FdRu/NwlaWZ0aZOz+/TV3x02M6h8YhUbnYyNYDf3 wJK+gwIgX7XVHokbLqTQS/Uv6tmvLcRdJv5P4ZhAOFvKhjqtmHyMh7isOERdDq0e 0hZ7BweDdq+0Hl4EGIyKx47MG8PZbor3Y0bJfOT9M4RmfnsepG7TN7eig/mJ7qft 6srvj7i9qQ6/1mJnE/+BYwqrzKmzbcuKw+26N/9n7BiCwRjdzQ9l+1cNmWdppnzM 022ewqeF5a3LQzoILqh2FFUbj03U8IsHm3nEtuV9Bv1RdQyPShpTc/YUfZq34Fk= =Ii0I -----END PGP SIGNATURE----- ------------=_1385260683-31782-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Oct 2013 21:41:04 +0000 Received: from localhost ([127.0.0.1]:54686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSD7O-0004lJ-TW for submit@debbugs.gnu.org; Fri, 04 Oct 2013 17:41:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VS1WT-0000Wm-5t for submit@debbugs.gnu.org; Fri, 04 Oct 2013 05:18:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS1WI-0003RL-D7 for submit@debbugs.gnu.org; Fri, 04 Oct 2013 05:18:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS1WI-0003RF-A9 for submit@debbugs.gnu.org; Fri, 04 Oct 2013 05:17:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS1W9-0006JB-9W for bug-parted@gnu.org; Fri, 04 Oct 2013 05:17:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS1W0-0003Pq-24 for bug-parted@gnu.org; Fri, 04 Oct 2013 05:17:49 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:56718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS1Vz-0003Oo-Cp for bug-parted@gnu.org; Fri, 04 Oct 2013 05:17:39 -0400 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 Oct 2013 19:17:28 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp05.au.ibm.com (202.81.31.211) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 4 Oct 2013 19:17:25 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 57BAD3578050 for ; Fri, 4 Oct 2013 19:17:14 +1000 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r949H21D7274896 for ; Fri, 4 Oct 2013 19:17:03 +1000 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r949HDYm005945 for ; Fri, 4 Oct 2013 19:17:13 +1000 Received: from aviksil-thinkpad.in.ibm.com ([9.79.192.156]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r949H2Cs005629; Fri, 4 Oct 2013 19:17:12 +1000 From: Avik Sil To: parted-devel@lists.alioth.debian.org, bug-parted@gnu.org Subject: [PATCH] GPT: add support for PReP GUID Date: Fri, 4 Oct 2013 14:47:02 +0530 Message-Id: <1380878222-7085-1-git-send-email-aviksil@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.11.7 X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13100409-1396-0000-0000-000003A65088 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 04 Oct 2013 17:41:01 -0400 Cc: dbkreling@br.ibm.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) From: Daniel Battaiola Kreling A new GUID 9e1a2d38-c612-4316-aa26-8b49521e5a8b for PReP partition is proposed to be included in GPT. --- libparted/labels/gpt.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c index 490de70..ee8148d 100644 --- a/libparted/labels/gpt.c +++ b/libparted/labels/gpt.c @@ -146,6 +146,10 @@ typedef struct ((efi_guid_t) { PED_CPU_TO_LE32 (0x5265636F), PED_CPU_TO_LE16 (0x7665), \ PED_CPU_TO_LE16 (0x11AA), 0xaa, 0x11, \ { 0x00, 0x30, 0x65, 0x43, 0xEC, 0xAC }}) +#define PARTITION_PREP_GUID \ + ((efi_guid_t) { PED_CPU_TO_LE32 (0x9e1a2d38), PED_CPU_TO_LE16 (0xc612), \ + PED_CPU_TO_LE16 (0x4316), 0xaa, 0x26, \ + { 0x8b, 0x49, 0x52, 0x1e, 0x5a, 0x8b }}) struct __attribute__ ((packed)) _GuidPartitionTableHeader_t { @@ -288,6 +292,7 @@ typedef struct _GPTPartitionData int atvrecv; int msftrecv; int legacy_boot; + int prep; } GPTPartitionData; static PedDiskType gpt_disk_type; @@ -796,6 +801,7 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_t *pte) = gpt_part_data->msftdata = gpt_part_data->msftrecv = gpt_part_data->legacy_boot + = gpt_part_data->prep = gpt_part_data->bios_grub = gpt_part_data->atvrecv = 0; if (pte->Attributes.RequiredToFunction & 0x1) @@ -821,6 +827,8 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_t *pte) gpt_part_data->msftrecv = 1; else if (!guid_cmp (gpt_part_data->type, PARTITION_APPLE_TV_RECOVERY_GUID)) gpt_part_data->atvrecv = 1; + else if (!guid_cmp (gpt_part_data->type, PARTITION_PREP_GUID)) + gpt_part_data->prep = 1; return part; } @@ -1338,6 +1346,7 @@ gpt_partition_new (const PedDisk *disk, gpt_part_data->msftrecv = 0; gpt_part_data->atvrecv = 0; gpt_part_data->legacy_boot = 0; + gpt_part_data->prep = 0; uuid_generate ((unsigned char *) &gpt_part_data->uuid); swap_uuid_and_efi_guid ((unsigned char *) (&gpt_part_data->uuid)); memset (gpt_part_data->name, 0, sizeof gpt_part_data->name); @@ -1411,6 +1420,11 @@ gpt_partition_set_system (PedPartition *part, gpt_part_data->type = PARTITION_RAID_GUID; return 1; } + if (gpt_part_data->prep) + { + gpt_part_data->type = PARTITION_PREP_GUID; + return 1; + } if (gpt_part_data->boot) { gpt_part_data->type = PARTITION_SYSTEM_GUID; @@ -1587,6 +1601,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_BIOS_GRUB: @@ -1599,6 +1614,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_RAID: @@ -1611,6 +1627,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_LVM: @@ -1623,6 +1640,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_HPSERVICE: @@ -1635,6 +1653,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_MSFT_RESERVED: @@ -1647,6 +1666,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_MSFT_DATA: @@ -1659,6 +1679,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftres = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; gpt_part_data->msftdata = 1; } else { @@ -1675,6 +1696,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftdata = gpt_part_data->msftres + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_APPLE_TV_RECOVERY: @@ -1687,8 +1709,21 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftres = gpt_part_data->msftdata + = gpt_part_data->prep = gpt_part_data->msftrecv = 0; return gpt_partition_set_system (part, part->fs_type); + case PED_PARTITION_PREP: + gpt_part_data->prep = state; + if (state) + gpt_part_data->boot + = gpt_part_data->raid + = gpt_part_data->lvm + = gpt_part_data->bios_grub + = gpt_part_data->hp_service + = gpt_part_data->msftres + = gpt_part_data->msftrecv + = gpt_part_data->atvrecv = 0; + return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_HIDDEN: gpt_part_data->hidden = state; return 1; @@ -1735,6 +1770,8 @@ gpt_partition_get_flag (const PedPartition *part, PedPartitionFlag flag) return gpt_part_data->hidden; case PED_PARTITION_LEGACY_BOOT: return gpt_part_data->legacy_boot; + case PED_PARTITION_PREP: + return gpt_part_data->prep; case PED_PARTITION_SWAP: case PED_PARTITION_LBA: case PED_PARTITION_ROOT: @@ -1761,6 +1798,7 @@ gpt_partition_is_flag_available (const PedPartition *part, case PED_PARTITION_APPLE_TV_RECOVERY: case PED_PARTITION_HIDDEN: case PED_PARTITION_LEGACY_BOOT: + case PED_PARTITION_PREP: return 1; case PED_PARTITION_SWAP: case PED_PARTITION_ROOT: -- 1.7.11.7 ------------=_1385260683-31782-1-- From unknown Mon Jun 23 18:30:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Avik Sil Subject: bug#15548: closed (Re: bug#15528: [parted-devel] [PATCH] GPT: add support for PReP GUID) Message-ID: References: <52916660.20906@ubuntu.com> <1381126910-8113-1-git-send-email-aviksil@linux.vnet.ibm.com> X-Gnu-PR-Message: they-closed 15548 X-Gnu-PR-Package: parted X-Gnu-PR-Keywords: patch Reply-To: 15548@debbugs.gnu.org Date: Sun, 24 Nov 2013 02:38:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1385260684-31782-3" This is a multi-part message in MIME format... ------------=_1385260684-31782-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15528: [PATCH RESEND] GPT: add support for PReP GUID which was filed against the parted package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15548@debbugs.gnu.org. --=20 15528: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15528 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1385260684-31782-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 15528-done) by debbugs.gnu.org; 24 Nov 2013 02:37:29 +0000 Received: from localhost ([127.0.0.1]:41023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkPZg-0008Fe-CM for submit@debbugs.gnu.org; Sat, 23 Nov 2013 21:37:28 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:34011) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkPZd-0008FO-U7 for 15528-done@debbugs.gnu.org; Sat, 23 Nov 2013 21:37:26 -0500 X-Authority-Analysis: v=2.0 cv=D/fF24tj c=1 sm=0 a=3SewDSjaRW4vdJyuxQ33ZQ==:17 a=DeBnktw0k-IA:10 a=JlIHnqCoHBcA:10 a=BOHRDoL6FGkA:10 a=S1A5HrydsesA:10 a=8nJEP1OIZ-IA:10 a=fxJcL_dCAAAA:8 a=KGjhK52YXX0A:10 a=I6nCQHyi_sUA:10 a=QfKxxUxMAAAA:8 a=9fOTct3aJ6dhWUspLf0A:9 a=wPNLvfGTeEIA:10 a=D0t-N9hpAQYA:10 a=3SewDSjaRW4vdJyuxQ33ZQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 72.238.73.171 Received: from [72.238.73.171] ([72.238.73.171:42961] helo=[192.168.1.6]) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 35/EA-20755-06661925; Sun, 24 Nov 2013 02:37:20 +0000 Message-ID: <52916660.20906@ubuntu.com> Date: Sat, 23 Nov 2013 21:37:20 -0500 From: Phillip Susi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: 15528-done@debbugs.gnu.org Subject: Re: bug#15528: [parted-devel] [PATCH] GPT: add support for PReP GUID References: <1380878222-7085-1-git-send-email-aviksil@linux.vnet.ibm.com> <94D0CD8314A33A4D9D801C0FE68B402953F48495@G4W3202.americas.hpqcorp.net> In-Reply-To: <94D0CD8314A33A4D9D801C0FE68B402953F48495@G4W3202.americas.hpqcorp.net> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15528-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Committed, with some documentation added. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCgAGBQJSkWZfAAoJEJrBOlT6nu75jsAH/3tPnQstAlcPl2BT0hMrIkWz SxCaXaOT2qzKYkvfQACt7Cl7FdRu/NwlaWZ0aZOz+/TV3x02M6h8YhUbnYyNYDf3 wJK+gwIgX7XVHokbLqTQS/Uv6tmvLcRdJv5P4ZhAOFvKhjqtmHyMh7isOERdDq0e 0hZ7BweDdq+0Hl4EGIyKx47MG8PZbor3Y0bJfOT9M4RmfnsepG7TN7eig/mJ7qft 6srvj7i9qQ6/1mJnE/+BYwqrzKmzbcuKw+26N/9n7BiCwRjdzQ9l+1cNmWdppnzM 022ewqeF5a3LQzoILqh2FFUbj03U8IsHm3nEtuV9Bv1RdQyPShpTc/YUfZq34Fk= =Ii0I -----END PGP SIGNATURE----- ------------=_1385260684-31782-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Oct 2013 06:22:38 +0000 Received: from localhost ([127.0.0.1]:59077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VT4DF-0004av-Jw for submit@debbugs.gnu.org; Mon, 07 Oct 2013 02:22:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33955) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VT4DE-0004an-1Z for submit@debbugs.gnu.org; Mon, 07 Oct 2013 02:22:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT4D3-0004Ej-Gl for submit@debbugs.gnu.org; Mon, 07 Oct 2013 02:22:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT4D3-0004Ed-Eg for submit@debbugs.gnu.org; Mon, 07 Oct 2013 02:22:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT4Cu-0003l3-Fg for bug-parted@gnu.org; Mon, 07 Oct 2013 02:22:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT4Cl-00048L-IB for bug-parted@gnu.org; Mon, 07 Oct 2013 02:22:16 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:52180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT4Ck-00047P-QV for bug-parted@gnu.org; Mon, 07 Oct 2013 02:22:07 -0400 Received: from /spool/local by e28smtp01.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 7 Oct 2013 11:51:58 +0530 Received: from d28dlp03.in.ibm.com (9.184.220.128) by e28smtp01.in.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 7 Oct 2013 11:51:53 +0530 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 5964F1258054 for ; Mon, 7 Oct 2013 11:52:13 +0530 (IST) Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r976Lnjp48693272 for ; Mon, 7 Oct 2013 11:51:49 +0530 Received: from d28av03.in.ibm.com (localhost [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r976Lpho024277 for ; Mon, 7 Oct 2013 11:51:51 +0530 Received: from aviksil-thinkpad.in.ibm.com (aviksil-thinkpad.in.ibm.com [9.124.35.22]) by d28av03.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r976Lpev024273; Mon, 7 Oct 2013 11:51:51 +0530 From: Avik Sil To: parted-devel@lists.alioth.debian.org, bug-parted@gnu.org Subject: [PATCH RESEND] GPT: add support for PReP GUID Date: Mon, 7 Oct 2013 11:51:50 +0530 Message-Id: <1381126910-8113-1-git-send-email-aviksil@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.11.7 X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13100706-4790-0000-0000-00000AAC36D3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: dbkreling@br.ibm.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) From: Daniel Battaiola Kreling PReP (PowerPC Reference Platform) boot partition is the first partition used in PowerPC platform for containing the bootable kernel or bootloader. The firmware searches for this partition and jumps to it for booting. So far no GUID was specified for this partition type and hence booting from GPT disk was not supported on this platform. A new GUID 9e1a2d38-c612-4316-aa26-8b49521e5a8b for PReP partition is proposed to be included in GPT. --- libparted/labels/gpt.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c index 490de70..ee8148d 100644 --- a/libparted/labels/gpt.c +++ b/libparted/labels/gpt.c @@ -146,6 +146,10 @@ typedef struct ((efi_guid_t) { PED_CPU_TO_LE32 (0x5265636F), PED_CPU_TO_LE16 (0x7665), \ PED_CPU_TO_LE16 (0x11AA), 0xaa, 0x11, \ { 0x00, 0x30, 0x65, 0x43, 0xEC, 0xAC }}) +#define PARTITION_PREP_GUID \ + ((efi_guid_t) { PED_CPU_TO_LE32 (0x9e1a2d38), PED_CPU_TO_LE16 (0xc612), \ + PED_CPU_TO_LE16 (0x4316), 0xaa, 0x26, \ + { 0x8b, 0x49, 0x52, 0x1e, 0x5a, 0x8b }}) struct __attribute__ ((packed)) _GuidPartitionTableHeader_t { @@ -288,6 +292,7 @@ typedef struct _GPTPartitionData int atvrecv; int msftrecv; int legacy_boot; + int prep; } GPTPartitionData; static PedDiskType gpt_disk_type; @@ -796,6 +801,7 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_t *pte) = gpt_part_data->msftdata = gpt_part_data->msftrecv = gpt_part_data->legacy_boot + = gpt_part_data->prep = gpt_part_data->bios_grub = gpt_part_data->atvrecv = 0; if (pte->Attributes.RequiredToFunction & 0x1) @@ -821,6 +827,8 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_t *pte) gpt_part_data->msftrecv = 1; else if (!guid_cmp (gpt_part_data->type, PARTITION_APPLE_TV_RECOVERY_GUID)) gpt_part_data->atvrecv = 1; + else if (!guid_cmp (gpt_part_data->type, PARTITION_PREP_GUID)) + gpt_part_data->prep = 1; return part; } @@ -1338,6 +1346,7 @@ gpt_partition_new (const PedDisk *disk, gpt_part_data->msftrecv = 0; gpt_part_data->atvrecv = 0; gpt_part_data->legacy_boot = 0; + gpt_part_data->prep = 0; uuid_generate ((unsigned char *) &gpt_part_data->uuid); swap_uuid_and_efi_guid ((unsigned char *) (&gpt_part_data->uuid)); memset (gpt_part_data->name, 0, sizeof gpt_part_data->name); @@ -1411,6 +1420,11 @@ gpt_partition_set_system (PedPartition *part, gpt_part_data->type = PARTITION_RAID_GUID; return 1; } + if (gpt_part_data->prep) + { + gpt_part_data->type = PARTITION_PREP_GUID; + return 1; + } if (gpt_part_data->boot) { gpt_part_data->type = PARTITION_SYSTEM_GUID; @@ -1587,6 +1601,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_BIOS_GRUB: @@ -1599,6 +1614,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_RAID: @@ -1611,6 +1627,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_LVM: @@ -1623,6 +1640,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_HPSERVICE: @@ -1635,6 +1653,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->msftres = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_MSFT_RESERVED: @@ -1647,6 +1666,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftdata = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_MSFT_DATA: @@ -1659,6 +1679,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftres = gpt_part_data->msftrecv + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; gpt_part_data->msftdata = 1; } else { @@ -1675,6 +1696,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftdata = gpt_part_data->msftres + = gpt_part_data->prep = gpt_part_data->atvrecv = 0; return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_APPLE_TV_RECOVERY: @@ -1687,8 +1709,21 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) = gpt_part_data->hp_service = gpt_part_data->msftres = gpt_part_data->msftdata + = gpt_part_data->prep = gpt_part_data->msftrecv = 0; return gpt_partition_set_system (part, part->fs_type); + case PED_PARTITION_PREP: + gpt_part_data->prep = state; + if (state) + gpt_part_data->boot + = gpt_part_data->raid + = gpt_part_data->lvm + = gpt_part_data->bios_grub + = gpt_part_data->hp_service + = gpt_part_data->msftres + = gpt_part_data->msftrecv + = gpt_part_data->atvrecv = 0; + return gpt_partition_set_system (part, part->fs_type); case PED_PARTITION_HIDDEN: gpt_part_data->hidden = state; return 1; @@ -1735,6 +1770,8 @@ gpt_partition_get_flag (const PedPartition *part, PedPartitionFlag flag) return gpt_part_data->hidden; case PED_PARTITION_LEGACY_BOOT: return gpt_part_data->legacy_boot; + case PED_PARTITION_PREP: + return gpt_part_data->prep; case PED_PARTITION_SWAP: case PED_PARTITION_LBA: case PED_PARTITION_ROOT: @@ -1761,6 +1798,7 @@ gpt_partition_is_flag_available (const PedPartition *part, case PED_PARTITION_APPLE_TV_RECOVERY: case PED_PARTITION_HIDDEN: case PED_PARTITION_LEGACY_BOOT: + case PED_PARTITION_PREP: return 1; case PED_PARTITION_SWAP: case PED_PARTITION_ROOT: -- 1.7.11.7 ------------=_1385260684-31782-3--