bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The format of the GPT partition table is version 10000


From: Andrew Clausen
Subject: Re: The format of the GPT partition table is version 10000
Date: Sat, 20 Nov 2004 11:28:40 +1100
User-agent: Mutt/1.5.6+20040722i

On Wed, Nov 03, 2004 at 12:35:25PM +0100, Szakacsits Szabolcs wrote:
> I'm not familiar with GPT but Parted code has this section:
> 
> /libparted/disk_gpt.c:_generate_header() 
> 
>       gpt->Revision = PED_CPU_TO_LE32 (GPT_HEADER_REVISION_V1_00);
>       gpt->HeaderSize = PED_CPU_TO_LE32 (92); /* per 1.02 spec */
> 
> Unless the GPT 1.00 spec defines HeaderSize to be 92 bytes too, this is
> wrong (but otherwise, logically, too). The code above sets the GPT
> revision to 1.00 but the header size is based on 1.02 spec.

The GPT spec is very strange.  The spec "version numbers" don't match
the "revision numbers".  I've changed the misleading comment to
"per 1.00 spec".

A header size of 512 bytes sounds strange... it's a pity we don't
know how it was created.

Cheers,
Andrew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]