From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lfz0R-0007cy-18 for mharc-grub-devel@gnu.org; Sat, 07 Mar 2009 11:04:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lfz0P-0007aa-Cz for grub-devel@gnu.org; Sat, 07 Mar 2009 11:04:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lfz0N-0007Xg-IZ for grub-devel@gnu.org; Sat, 07 Mar 2009 11:04:04 -0500 Received: from [199.232.76.173] (port=33147 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lfz0N-0007XI-AY for grub-devel@gnu.org; Sat, 07 Mar 2009 11:04:03 -0500 Received: from mail-fx0-f172.google.com ([209.85.220.172]:38201) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lfz0M-0004ib-Ny for grub-devel@gnu.org; Sat, 07 Mar 2009 11:04:03 -0500 Received: by fxm20 with SMTP id 20so671152fxm.42 for ; Sat, 07 Mar 2009 08:04:01 -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=JIwelge+lsAzDcTa1uwbKLLcFaAyKuzHqwDfJ2k+HlQ=; b=tfc4XmSWmI4GSy6bcBKBhFORIM1uNUFGflsg1eNUKZXcq9llKIIHz4iUW13J7jC/hk zyy4oYUtmyFLT/PfUsOWumtZKIkL73d8wlGEvCHX0CNATZoWNvs9wuarB6zUejdzoI3u 1VBQdO0cvaqDpdp9AnIcp/uUvr0r/61RtKRzo= 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=Dx2mSS7J2l2+CbdJ9QpS0TnKnr2L9ElvKJLGaK7dxFhjczOyIEqg5f03nMFwuKmdho LuUmEziOlsEw0wl99ZoBRLkgJ/J2mTrfR+/flsbR1N0kZTSbSv+yOoZvhKTC/fu9OnKd QAa7fZCa7qJbOsqh9rNnKglEpyBkVjjsWq+ak= Received: by 10.86.66.19 with SMTP id o19mr2743764fga.68.1236441841770; Sat, 07 Mar 2009 08:04:01 -0800 (PST) Received: from ?192.168.1.25? (181-74.0-85.cust.bluewin.ch [85.0.74.181]) by mx.google.com with ESMTPS id d4sm1146780fga.15.2009.03.07.08.04.01 (version=SSLv3 cipher=RC4-MD5); Sat, 07 Mar 2009 08:04:01 -0800 (PST) Message-ID: <49B29AEE.4000409@gmail.com> Date: Sat, 07 Mar 2009 17:03:58 +0100 From: phcoder User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: The development of GRUB 2 References: <49B28BA6.3030109@gmail.com> <20090307153815.GA15220@thorin> In-Reply-To: <20090307153815.GA15220@thorin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [Design] nested partitions: Unify grub_partition and grub_disk 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: Sat, 07 Mar 2009 16:04:05 -0000 I forgot to speak about another question: partition naming. I see 2 possibilities 1) purely numeric unified naming scheme. It means that (hd0,1,a) becomes (hd0,1,1) On one hand mixed number-letter scheme is similar to what freebsd uses but on the other hand numerical scheme is versatile and allows unlimited nestedness. And I don't see why we would use a scheme specific to one of many supported OSes. 2) Every partition map is allowed to pick the name that it likes as long as it contains no comma. In this way we would need to keep partition-name parsing functions in partitition map modules. It means that this code would be duplicated. But this scheme is better in the cases when partition map has no numbering scheme but instead has labels attached to partitions. But in this case IMO search command should be used find the partition I personally would prefer the first way > Also an interesting question is how would "has_partitions" field be > handled in this scheme. Just ignored. It's actually used only to optimise some code out based on the assumption that some media has no partitions. Performance gain is negligible but if this assumption doesn't hold true grub won't be able to access the partitions which are really here. Famous example is a cdrom. Most people would assume that cdrom has no partitions. But on powerpc bootable cdroms use APM -- Regards Vladimir 'phcoder' Serbinenko