From owner-freebsd-current@FreeBSD.ORG Mon Oct 8 17:31:49 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4985916A418 for ; Mon, 8 Oct 2007 17:31:49 +0000 (UTC) (envelope-from rse@engelschall.com) Received: from visp1.engelschall.com (visp1.engelschall.com [195.30.6.144]) by mx1.freebsd.org (Postfix) with ESMTP id 0FC5B13C457 for ; Mon, 8 Oct 2007 17:31:49 +0000 (UTC) (envelope-from rse@engelschall.com) Received: by visp1.engelschall.com (Postfix, from userid 21100) id CA5C01B44816; Mon, 8 Oct 2007 19:31:48 +0200 (CEST) Received: by en1.engelschall.com (Postfix, from userid 10000) id 12C416D83E; Mon, 8 Oct 2007 19:28:01 +0200 (CEST) Date: Mon, 8 Oct 2007 19:28:01 +0200 From: "Ralf S. Engelschall" To: freebsd-current@freebsd.org Message-ID: <20071008172801.GA82997@engelschall.com> References: <20071005193825.GA66299@engelschall.com> <20071008164250.GC98555@nowhere> <539A3DC9-59C9-4106-8F35-4D5676707EC0@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <539A3DC9-59C9-4106-8F35-4D5676707EC0@mac.com> Organization: FreeBSD User-Agent: Mutt/1.5.16 OpenPKG/CURRENT (2007-06-09) Subject: Re: cosmetics: bsdlabel fstype for ZFS partitions? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Ralf S. Engelschall" List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2007 17:31:49 -0000 On Mon, Oct 08, 2007, Marcel Moolenaar wrote: > On Oct 8, 2007, at 9:42 AM, Craig Boston wrote: >> On Fri, Oct 05, 2007 at 09:38:25PM +0200, Ralf S. Engelschall wrote: > [...] >> what GUID to use. I couldn't find a good reference for what Sun uses >> for ZFS disks, so I ended up making up a bogus one under FreeBSD's >> range. >> >> 516e7cba-6ecf-11d6-8ff8-00022d09712b Well, this UUID is... $ uuid -d 516e7cba-6ecf-11d6-8ff8-00022d09712b encode: STR: 516e7cba-6ecf-11d6-8ff8-00022d09712b SIV: 108241150102539780167861756444952588587 decode: variant: DCE 1.1, ISO/IEC 11578:1996 version: 1 (time and node based) content: time: 2002-05-24 04:32:55.748933.8 UTC clock: 4088 (usually random) node: 00:02:2d:09:71:2b (global unicast) > This is technically speaking not a good idea because the UUID may > be in use already. In this case, given that the MAC address is in > one of my machines, it can only be a UUID I can possibly generate > (legally) and I can tell you that the UUID is not in use :-) > > If no-one has created their own UUID for ZFS, I'll re-use Craig's > one so that he doesn't have to change his GPT. Any objections for > using Craig's synthesized UUID for ZFS file systems? Well, if a really synthesized UUID for ZFS under FreeBSD is wished, I would propose to generate a UUID v3 for this purpose and add this to the FreeBSD handbook so people can find it. For instance something like: $ uuid -v3 ns:DNS zfs.FreeBSD.org 61d35356-226b-38dd-8346-f97771b80070 $ uuid -d 61d35356-226b-38dd-8346-f97771b80070 encode: STR: 61d35356-226b-38dd-8346-f97771b80070 SIV: 130032380492558881552004941246316937328 decode: variant: DCE 1.1, ISO/IEC 11578:1996 version: 3 (name based, MD5) content: 61:D3:53:56:22:6B:08:DD:03:46:F9:77:71:B8:00:70 (not decipherable: MD5 message digest only) Ralf S. Engelschall rse@engelschall.com www.engelschall.com