From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hl9Rz-0005JG-FY for mharc-grub-devel@gnu.org; Mon, 07 May 2007 16:04:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hl9Ry-0005J4-Dg for grub-devel@gnu.org; Mon, 07 May 2007 16:04:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hl9Rw-0005Is-R0 for grub-devel@gnu.org; Mon, 07 May 2007 16:04:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hl9Rw-0005Ip-Nr for grub-devel@gnu.org; Mon, 07 May 2007 16:04:48 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hl9Kv-0000vX-UZ for grub-devel@gnu.org; Mon, 07 May 2007 15:57:34 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Hl9Ku-0000SN-NM for grub-devel@gnu.org; Mon, 07 May 2007 21:57:33 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1Hl9M9-0004mz-Dn for grub-devel@gnu.org; Mon, 07 May 2007 21:58:50 +0200 Date: Mon, 7 May 2007 21:58:46 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20070507195844.GA3143@aragorn> References: <20070501191808.GA19766@aragorn> <87fy6bo17h.fsf@xs4all.nl> <20070507091745.GA3628@aragorn> <200705072123.54871.okuji@enbug.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705072123.54871.okuji@enbug.org> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. 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 20:04:50 -0000 On Mon, May 07, 2007 at 09:23:54PM +0200, Yoshinori K. Okuji wrote: > 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". Ok, fixed and committed. Thanks, -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.