From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JuS5V-0006S1-7f for mharc-grub-devel@gnu.org; Fri, 09 May 2008 08:52:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuS5S-0006QI-KO for grub-devel@gnu.org; Fri, 09 May 2008 08:52:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuS5Q-0006Pr-8N for grub-devel@gnu.org; Fri, 09 May 2008 08:52:33 -0400 Received: from [199.232.76.173] (port=56220 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuS5P-0006Pk-JB for grub-devel@gnu.org; Fri, 09 May 2008 08:52:31 -0400 Received: from aybabtu.com ([69.60.117.155]:55746) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JuS5P-0005B1-FS for grub-devel@gnu.org; Fri, 09 May 2008 08:52:31 -0400 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JuS5M-0001qm-Hn for grub-devel@gnu.org; Fri, 09 May 2008 14:52:30 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JuS4e-0008Hz-Gg for grub-devel@gnu.org; Fri, 09 May 2008 14:51:44 +0200 Date: Fri, 9 May 2008 14:51:44 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080509125144.GB3705@thorin> References: <4807AA02.1020909@mail.berlios.de> <20080418132858.GH29226@thorin> <480A02F3.7000504@mail.berlios.de> <20080420100713.GA16764@thorin> <1208773866.29071.11.camel@dv> <20080506151800.GA25697@thorin> <1210088628.2796.14.camel@dv> <20080507130307.GD16492@thorin> <1210180970.2321.17.camel@dv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: retiring device.map 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: Fri, 09 May 2008 12:52:35 -0000 On Thu, May 08, 2008 at 01:39:47AM +0800, Bean wrote: > > Yes, UUID can be useful, it's better to add it to grub2. > > UUID itself is quite easy to get, but the question is how to integrate > it with the existing disk layer. I'm thinking of the following three > implementation: > > 1, Add a function pointer to fs structure to retrieve UUID, just like label. > 2. Add a data pointer to the disk structure, the fs driver allocated > memory when it found UUID. > 3. Use a separate module to handle UUID. fs driver that found UUID can > add disk to uuid mapping using exported service. > > Would someone comment on the ideas ? I'm not completely filled on the basics of UUID. The location of this information is defined by the filesystem implementation, right? In that case, I'd suggest a function to fetch it from grub_fs rather than a location where it's always copied to. This allows filesystems that don't implement it to leave a NULL in it, and doesn't force GRUB to process it every time (saving time when loading filesystems where UUID isn't going to be used). Then search.mod could simply do: if (fs->get_uuid) my_uuid = fs->get_uuid (); would that be enough? -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)