Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LlCvo-0002JD-Ig for mharc-grub-devel@gnu.org; Sat, 21 Mar 2009 21:56:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LlCvm-0002Ii-8V for grub-devel@gnu.org; Sat, 21 Mar 2009 21:56:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LlCvl-0002IW-NG for grub-devel@gnu.org; Sat, 21 Mar 2009 21:56:53 -0400 Received: from [199.232.76.173] (port=53892 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlCvl-0002IO-Ed for grub-devel@gnu.org; Sat, 21 Mar 2009 21:56:53 -0400 Received: from [74.93.104.97] (port=60664 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LlCvl-0006Cr-1p for grub-devel@gnu.org; Sat, 21 Mar 2009 21:56:53 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 37D6AC8D940; Sat, 21 Mar 2009 18:56:40 -0700 (PDT) Date: Sat, 21 Mar 2009 18:56:40 -0700 (PDT) Message-Id: <20090321.185640.75768008.davem@davemloft.net> To: grub-devel@gnu.org, phcoder@gmail.com From: David Miller In-Reply-To: <49C58950.90104@gmail.com> References: <20090318.135522.254268985.davem@davemloft.net> <20090318.140153.206376672.davem@davemloft.net> <49C58950.90104@gmail.com> X-Mailer: Mew version 6.1 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: GRUB device names wrt. ieee1275 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: Sun, 22 Mar 2009 01:56:55 -0000 From: phcoder Date: Sun, 22 Mar 2009 01:41:52 +0100 > Device name in boot block will anyway be written in it's complete > raw OFW form, no matter how the rest of the grub2 accessing the > disks. Using UUIDs in this place would be nice. On IRC you said that > we have 120 bytes for the name. UUID is 16 or 32 bytes depending on > FS. Is it possible to fit something like of > every disk, ? This is possible, but I know that Solaris folks would like to use the Sparc GRUB support I'm writing and I'm not so sure whether they have FS UUIDs or not. > I don't agree that all devices should be accessed exclusively by > UUID. It makes things difficult to maintain because of internal > naming. IMO quoting and escaping offers the best universal > solution. I don't see why sth like > (/pci@1e\,600000/pci@0/pci@9/pci@0/scsi@1/disk@0,1) is a > problem. Anyway you don't type such a thing manually and probably > use tab-completition instead We could use escaping, sure. Actually most of the time users use device aliases, however: 1) GRUB should work when a device lacks a alias. 2) GRUB should keep working even if the user deletes one of the aliases. While convenient I'm not so sure that OF device aliases are a good basis for the names GRUB should use because they are by their very nature transient. It does take quite a bit of effort to translate between different OS device naming formats into OF native ones. So whatever universal naming convention is choosen, it should be such that it can be mechanically and statelessly converted to OF.