From: "KUWAMURA Shin'ya" Subject: Re: [Xen-devel] [PATCH][RFC] Support GPT (GUID Partition Table) Date: Fri, 13 Apr 2007 16:10:35 +0900 (JST) Message-ID: <20070413.161035.112537416.kuwa@jp.fujitsu.com> References: <014101c77c0d$de1055a0$ecb1220a@fj98229700> <20070412.172818.73333117.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Apr_13_16_10_35_2007_178)--" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070412.172818.73333117.kuwa@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-ia64-devel-bounces@lists.xensource.com Errors-To: xen-ia64-devel-bounces@lists.xensource.com To: keir@xensource.com Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Fri_Apr_13_16_10_35_2007_178)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Keir, On <20070412.172818.73333117.kuwa@jp.fujitsu.com> "KUWAMURA Shin'ya" wrote: > > - pygrub cannot access a domain more than 2^32 * SECTOR_SIZE because > get_fs_offset() treats the offset as a 32-bit integer. In GPT, the > offset must be treated as 64-bit integer. > > - This patch returns a part of a GUID unique to the partition as > legacy partition types. pygrub may misunderstand partition types. I fixed these problems. Best Regards, -- KUWAMURA Shin'ya ----Next_Part(Fri_Apr_13_16_10_35_2007_178)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix_gpt_support.patch" # HG changeset patch # User KUWAMURA Shin'ya # Date 1176447935 -32400 # Node ID 998f640f53bda5a18d7452192b8b3f140609862a # Parent a839e331f06f7b19ca601b277de9fcbedbeb4a77 fix GPT support. - 64 bit support for starting of a GPT partition. - detect partition types precisely. Signed-off-by: KUWAMURA Shin'ya diff -r a839e331f06f -r 998f640f53bd tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub Thu Apr 12 14:13:04 2007 +0100 +++ b/tools/pygrub/src/pygrub Fri Apr 13 16:05:35 2007 +0900 @@ -61,13 +61,6 @@ def get_active_partition(file): if struct.unpack("