Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LwYzc-0007E1-WB for mharc-grub-devel@gnu.org; Wed, 22 Apr 2009 05:43:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwYza-0007Dm-2U for grub-devel@gnu.org; Wed, 22 Apr 2009 05:43:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwYzY-0007DZ-7u for grub-devel@gnu.org; Wed, 22 Apr 2009 05:43:45 -0400 Received: from [199.232.76.173] (port=57224 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwYzY-0007DW-2K for grub-devel@gnu.org; Wed, 22 Apr 2009 05:43:44 -0400 Received: from [74.93.104.97] (port=40463 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwYzX-0007do-L4 for grub-devel@gnu.org; Wed, 22 Apr 2009 05:43:43 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id B1A4CC8C1B0; Wed, 22 Apr 2009 02:43:34 -0700 (PDT) Date: Wed, 22 Apr 2009 02:43:34 -0700 (PDT) Message-Id: <20090422.024334.30991975.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: Wed, 22 Apr 2009 09:43:46 -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? Yes it seems that it should be able to handle this situation. I cannot say %100 for sure until I see the code you end up writing, of course :)