Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LwBoN-00056B-0n for mharc-grub-devel@gnu.org; Tue, 21 Apr 2009 04:58:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwBoL-00055k-D5 for grub-devel@gnu.org; Tue, 21 Apr 2009 04:58:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwBoI-00055B-BU for grub-devel@gnu.org; Tue, 21 Apr 2009 04:58:35 -0400 Received: from [199.232.76.173] (port=37083 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwBoI-000558-8U for grub-devel@gnu.org; Tue, 21 Apr 2009 04:58:34 -0400 Received: from [74.93.104.97] (port=42155 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwBoH-0006MQ-Jy for grub-devel@gnu.org; Tue, 21 Apr 2009 04:58:33 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id D707135C12C; Tue, 21 Apr 2009 01:58:13 -0700 (PDT) Date: Tue, 21 Apr 2009 01:58:13 -0700 (PDT) Message-Id: <20090421.015813.70544075.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: Tue, 21 Apr 2009 08:58:37 -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? Thanks for your feedback, I'll take a look at this.