Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2008 08:57:48 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: [PATCH] Teach geom_label to recognise gpt labels and uuids
Message-ID:  <FCAC7DF6-16C6-4960-9FA7-4E9EB4112D18@mac.com>
In-Reply-To: <gdpnsf$8s2$1@ger.gmane.org>
References:  <b649e5e0810230412u5a80ddb8p3955d5b052fa1896@mail.gmail.com> <gdpnsf$8s2$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Oct 23, 2008, at 4:41 AM, Ivan Voras wrote:

> Marius N=FCnnerich wrote:
>> Hi all,
>>
>> I wrote the following patch for geom_label:
>> http://nuenneri.ch/freebsd/geom_label.patch
>>
>> What do you think about it? I would love to hear about some tests.
>
> Do you think it's wise to have two separate directories: /dev/gpt and
> /dev/gpt_uuid? I don't think anyone will mistake the UUID from the =20
> label
> if it's in the same directory. Also, if I remember correctly how GPT
> works, UUID is always present but the label is optional?

Yes, the name/label is optional.

Something to think about: A system can have multiple disks,
and therefore multiple GPT tables. Each table has its own
UUID (hdr_uuid). This is the UUID of the disk itself in a
way. It's probably a good idea to expose that as well:
	/dev/gpt/${hdr_uuid}/${ent_uuid}
	/dev/gpt/${hdr_uuid}/${ent_name}
or even:
	/dev/gpt/${hdr_uuid}-${ent_uuid}
	/dev/gpt/${hdr_uuid}-${ent_name}

FYI,

--=20
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FCAC7DF6-16C6-4960-9FA7-4E9EB4112D18>