From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NZKGp-0005vw-Kw for mharc-grub-devel@gnu.org; Mon, 25 Jan 2010 03:26:03 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZKGj-0005up-Mi for grub-devel@gnu.org; Mon, 25 Jan 2010 03:25:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZKGd-0005tS-BK for grub-devel@gnu.org; Mon, 25 Jan 2010 03:25:56 -0500 Received: from [199.232.76.173] (port=41754 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZKGc-0005tJ-Mb for grub-devel@gnu.org; Mon, 25 Jan 2010 03:25:50 -0500 Received: from mx20.gnu.org ([199.232.41.8]:46296) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZKGc-0006bD-5p for grub-devel@gnu.org; Mon, 25 Jan 2010 03:25:50 -0500 Received: from mail-ew0-f226.google.com ([209.85.219.226]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZKGa-0001X0-7H for grub-devel@gnu.org; Mon, 25 Jan 2010 03:25:48 -0500 Received: by ewy26 with SMTP id 26so1722150ewy.8 for ; Mon, 25 Jan 2010 00:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=gGlc8dhX3KH/GVSHEmf3ptEwmRmZxHA82tJSpgQDdwA=; b=dqeL+BZGK/Ch3S7uIBZkPjxDgshze2kb4YtNaon3DQnh7sCddow3ThNOY/+u411qS9 hzVGry+NK+lACuWy7jgiiVs+tHMoIFLC03xJAibq/guX6Teui1gWcKPa2EDQkco2BNql 7OnhIIlBgJWRAAnm8gP41rLZzlFaJllb6tkOU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=EWaHQemCjmi/V0WqiReyGl9+G4hfocqiZ7rJ9mBXV4O6yURlOfTAa/QQYsXsImEJ9l /g34ADqxf9zsH6BIhiuMmmEeCW/naMTqWzg1y/IsinBGN8Or+2JwSt1w1db78JVw778L U9n19etRXNOF9LzAIbhhZLyty44hsvKhciV1o= Received: by 10.213.97.65 with SMTP id k1mr5377037ebn.32.1264407945807; Mon, 25 Jan 2010 00:25:45 -0800 (PST) Received: from ?192.168.1.50? (c2433-1-88-160-112-182.fbx.proxad.net [88.160.112.182]) by mx.google.com with ESMTPS id 14sm4339935ewy.15.2010.01.25.00.25.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 Jan 2010 00:25:45 -0800 (PST) Message-ID: <4B5D5588.4080503@gmail.com> Date: Mon, 25 Jan 2010 09:25:44 +0100 From: =?UTF-8?B?R3LDqWdvaXJlIFN1dHJl?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: The development of GNU GRUB References: <20090804201512.GA15811@thorin> <20090817140657.GP32551@thorin> <20100122165300.GA14428@thorin> <4B59E869.700@gmail.com> <20100124204118.GA10054@thorin> In-Reply-To: <20100124204118.GA10054@thorin> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH] nested partitions X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 08:25:59 -0000 Robert Millan wrote: > With this approach, the burden is no longer in GRUB. Then I don't care > how weird disk layouts can become, because GRUB doesn't have to probe > them. We can even support things like this if it makes users happy: > > (hd0,bsd2,msdos1,sun1,apple4,msdos1) I like this generic approach very much. And as you said, in non-straightforward disk layouts, the responsibility of finding the appropriate path to access a given partition is left to the user. In all generality, the links between labels is a graph, for instance in your example above, the two occurrences of msdos1 could be the same partition. How does the probing code work regarding this? Does partition_iterate terminate if the graph has cycles? Grégoire