From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K5QR9-00034X-GU for mharc-grub-devel@gnu.org; Sun, 08 Jun 2008 15:20:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5QR7-00032G-Hc for grub-devel@gnu.org; Sun, 08 Jun 2008 15:20:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5QR5-000302-QP for grub-devel@gnu.org; Sun, 08 Jun 2008 15:20:17 -0400 Received: from [199.232.76.173] (port=55079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5QR5-0002zx-Fo for grub-devel@gnu.org; Sun, 08 Jun 2008 15:20:15 -0400 Received: from aybabtu.com ([69.60.117.155]:41288) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K5QR5-0006FT-GO for grub-devel@gnu.org; Sun, 08 Jun 2008 15:20:15 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1K5QPh-00005N-Fk for grub-devel@gnu.org; Sun, 08 Jun 2008 21:18:49 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1K5QQn-0000Io-Q2 for grub-devel@gnu.org; Sun, 08 Jun 2008 21:19:57 +0200 Date: Sun, 8 Jun 2008 21:19:57 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080608191957.GA21687@thorin> References: <20080531113901.GA20946@thorin> <20080603210925.GA10712@thorin> <20080606164300.GA14910@thorin> <20080606233131.GA7956@thorin> <1470.88.146.1.38.1212817466.squirrel@drak.ucw.cz> <1212896079.3071.45.camel@rd> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1212896079.3071.45.camel@rd> 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: [PATCH] ntfs UUIDs (Re: UUID-based boot (Re: [PATCH] Environment block support for grub2)) 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, 08 Jun 2008 19:20:17 -0000 On Sat, Jun 07, 2008 at 11:34:39PM -0400, Pavel Roskin wrote: > On Sat, 2008-06-07 at 07:44 +0200, Tomáš Ebenlendr wrote: > > Dne 7 Červen 2008, 01:31, Robert Millan napsal(a): > > > This patch adds the 64-bit serial number as UUID. But I'm not sure what > > > is the "standard" method to stringify this number. Apparently, Windows > > > only prints half of it in the dir command. > > > > That seems to me as some backward (pronounce: awkward) compatibility of > > M$ Volume ID. Volume ID in M$ windows is (as you say) 'xxxx-xxxx' two > > 16 bit hexadecimal numbers. And all programs I tested report the number > > this way. So if we want user to enter these numbers manually we should > > ignore the remaining four bits. Alternatively we can provide utility that > > prints out whole serial number. > > I suggest that you check udev sources: > http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/ > > It calculates UUID for many filesystems (see extras/lib/volime_id/lib). > It would be nice to stay compatible with udev. Ok. I adjusted it to output the same format as vol_id and committed. Turns out this was the simplest to implement (get a 64-bit LE and print right away). -- Robert Millan I know my rights; I want my phone call! What good is a phone call… if you are unable to speak? (as seen on /.)