From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hl8vS-0001Pj-1s for mharc-grub-devel@gnu.org; Mon, 07 May 2007 15:31:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hl8vP-0001PG-It for grub-devel@gnu.org; Mon, 07 May 2007 15:31:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hl8vP-0001Od-7L for grub-devel@gnu.org; Mon, 07 May 2007 15:31:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hl8vP-0001OP-2M for grub-devel@gnu.org; Mon, 07 May 2007 15:31:11 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hl8oO-0004sj-Ao for grub-devel@gnu.org; Mon, 07 May 2007 15:23:56 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id 467E03D155F2D for ; Tue, 8 May 2007 01:24:08 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 192F33D155F2C for ; Tue, 8 May 2007 01:24:08 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Mon, 7 May 2007 21:23:54 +0200 User-Agent: KMail/1.9.4 References: <20070501191808.GA19766@aragorn> <87fy6bo17h.fsf@xs4all.nl> <20070507091745.GA3628@aragorn> In-Reply-To: <20070507091745.GA3628@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705072123.54871.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.009414, version=0.17.2 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: GPT on PC/BIOS computers X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 19:31:12 -0000 On Monday 07 May 2007 11:17, Robert Millan wrote: > On Sat, May 05, 2007 at 03:21:38PM +0200, Marco Gerards wrote: > > > I've looked into this, but I need some advice. What's the simplest way > > > to obtain the corresponding grub_partition_t structure for a partition > > > by knowing its drive name? > > > > You can use grub_partition_iterate. Or open the disk and use > > ->partition. You can read the name of the partitioning scheme. The > > is also done in grub-setup.c, in the code you altered. > > Patch attached. Let me know if it's correct (I had my doubts about > hardcoding the the whole partition_map list in grub-probe.c, but then again > I think safety is more important). The naming is not good. In GRUB, we call "partmap" but not "ptable". Okuji