From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ICXUC-0001wL-TX for mharc-grub-devel@gnu.org; Sun, 22 Jul 2007 05:12:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ICXUA-0001vt-CH for grub-devel@gnu.org; Sun, 22 Jul 2007 05:12:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ICXU8-0001vg-04 for grub-devel@gnu.org; Sun, 22 Jul 2007 05:12:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICXU7-0001vd-PU for grub-devel@gnu.org; Sun, 22 Jul 2007 05:12:15 -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 1ICXU7-0000rI-G7 for grub-devel@gnu.org; Sun, 22 Jul 2007 05:12:15 -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 1ICXU6-0002Ok-2c for grub-devel@gnu.org; Sun, 22 Jul 2007 11:12:14 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1ICXWo-0003cQ-Am for grub-devel@gnu.org; Sun, 22 Jul 2007 11:15:02 +0200 Date: Sun, 22 Jul 2007 11:15:02 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20070722091502.GA13788@aragorn> References: <20070709150550.GA13390@aragorn> <1184099203.9495.70.camel@basalt> <20070713223102.GC20231@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070713223102.GC20231@aragorn> 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: GRUB_IEEE1275_FLAG_NO_PARTITION_0 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: Sun, 22 Jul 2007 09:12:18 -0000 On Sat, Jul 14, 2007 at 12:31:02AM +0200, Robert Millan wrote: > On Tue, Jul 10, 2007 at 03:26:43PM -0500, Hollis Blanchard wrote: > > On Mon, 2007-07-09 at 17:05 +0200, Robert Millan wrote: > > > What's the point of GRUB_IEEE1275_FLAG_NO_PARTITION_0 ? We have code that > > > checks this flag, but nobody initialises it: > > > > > > disk/ieee1275/ofdisk.c: if (! grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_NO_PARTITION_0)) > > > include/grub/ieee1275/ieee1275.h: GRUB_IEEE1275_FLAG_NO_PARTITION_0, > > > > In IEEE1275, partition 0 (as in "disk:0") means "the whole disk". > > However, CodeGen-based firmware (that means Genesi) have a bug where > > partition 0 is actually disk partition 1. In that case, to access the > > whole disk, GRUB must open "disk" instead of "disk:0". > > Yes, but don't we already have GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS for that ? Ah, I understand now. GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS implies GRUB_IEEE1275_FLAG_NO_PARTITION_0 since partition 0 is the first partition and cannot represent whole disk. However, GRUB_IEEE1275_FLAG_NO_PARTITION_0 doesn't imply GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS. I think it would be clearer if GRUB_IEEE1275_FLAG_NO_PARTITION_0 was renamed to GRUB_IEEE1275_FLAG_PARTITION_0_IS_NOT_WHOLE_DISK. What do you think? -- 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.