[PATCH] add GPT partition support.

Tony Breeds tony at bakeyournoodle.com
Sat May 11 14:52:02 EST 2013


On Tue, Apr 23, 2013 at 01:06:56PM +0200, Dinar Valeev wrote:
> The patch adds GPT partitions support.
> It looks for GPT_BASIC_DATA (parted default) and GPT_LINUX_NATIVE gpt
> uuids.

You forgot to sign off the patch.

> ---
>  include/gpt-part.h | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  second/partition.c | 45 +++++++++++++++++++++++++++++++++--
>  2 files changed, 113 insertions(+), 2 deletions(-)
>  create mode 100644 include/gpt-part.h
> 
> diff --git a/include/gpt-part.h b/include/gpt-part.h
> new file mode 100644
> index 0000000..83b4f77
> --- /dev/null
> +++ b/include/gpt-part.h
> @@ -0,0 +1,70 @@
> +/*
> + *  gpt-part.h - Structure of gpt partition table
> + *
> + *  Copyright (C) 2013 Dinar Valeev
> + *
> + *  This program is free software; you can redistribute it and/or modify
> + *  it under the terms of the GNU General Public License as published by
> + *  the Free Software Foundation; either version 2 of the License, or
> + *  (at your option) any later version.
> + *
> + *  This program is distributed in the hope that it will be useful,
> + *  but WITHOUT ANY WARRANTY; without even the implied warranty of
> + *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + *  GNU General Public License for more details.
> + *
> + *  You should have received a copy of the GNU General Public License
> + *  along with this program; if not, write to the Free Software
> + *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
> + */
> +
> +#include <byteorder.h>
> +
> +#define GPT_LINUX_NATIVE \
> +((gpt_part_type_t){ cpu_to_le32(0x0FC63DAF), cpu_to_le16(0x8483),
> cpu_to_le16(0x4772),0x8E, 0x79, \

Hmm very damaged in transit :(

I've fixed all of these up as they were pretty simple.

Asside from that the patch looks good.

Yours Tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/yaboot-devel/attachments/20130511/fa317f9a/attachment.sig>


More information about the Yaboot-devel mailing list