Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LzWHl-0003Ip-N5 for mharc-grub-devel@gnu.org; Thu, 30 Apr 2009 09:26:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzWHj-0003IE-GD for grub-devel@gnu.org; Thu, 30 Apr 2009 09:26:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzWHj-0003I0-2v for grub-devel@gnu.org; Thu, 30 Apr 2009 09:26:43 -0400 Received: from [199.232.76.173] (port=33401 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzWHi-0003Hx-Ug for grub-devel@gnu.org; Thu, 30 Apr 2009 09:26:42 -0400 Received: from 74-93-104-97-washington.hfc.comcastbusiness.net ([74.93.104.97]:54101 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzWHi-0000gS-Jm for grub-devel@gnu.org; Thu, 30 Apr 2009 09:26:42 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id EFDBFC8D92C; Thu, 30 Apr 2009 06:26:35 -0700 (PDT) Date: Thu, 30 Apr 2009 06:26:35 -0700 (PDT) Message-Id: <20090430.062635.237213579.davem@davemloft.net> To: grub-devel@gnu.org, phcoder@gmail.com From: David Miller In-Reply-To: References: <20090419.173031.143347517.davem@davemloft.net> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: Re: [PATCH]: grub: Partitions can start at zero. 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: Thu, 30 Apr 2009 13:26:44 -0000 From: Vladimir Serbinenko Date: Mon, 20 Apr 2009 18:53:35 +0200 > On Mon, Apr 20, 2009 at 2:30 AM, David Miller wrote: > >> >> With Sun partitions, individual partitions can start at disk >> address zero. That's right, zero. >> >> This works because UFS and EXT{2,3,4} superblocks are offset >> far enough into the partition that it won't overwrite the >> disk label nor the boot block. >> >> I added an, arguably hackish, heuristic to handle this properly. >> Basically if the OS device name does not end in a digit we'll believe >> that a zero hdg.start value can be a partition. >> >> If anyone has a better way to handle this, let me know :-) >> > What about the way I proposed in thread on implementing nested partitions? After some discussions with Vladimir on IRC, he agreed that my change goes in for now until his nested partition work is ready. So I have committed this change. GRUB works on sparc64 right now on the one test system I got working tonight, a sparc64 virtualized Sun LDOM guest system. In fact most systems should work as long as they don't have "," characters in their block device OF path name. I'm working on that problem now.