cosmetics: bsdlabel fstype for ZFS partitions?
Ralf S. Engelschall
rse+freebsd-current at FreeBSD.org
Mon Oct 8 10:31:49 PDT 2007
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 at engelschall.com
www.engelschall.com
More information about the freebsd-current
mailing list