From owner-freebsd-geom@FreeBSD.ORG Thu Oct 23 16:35:02 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E69EF1065672; Thu, 23 Oct 2008 16:35:02 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout022.mac.com (asmtpout022.mac.com [17.148.16.97]) by mx1.freebsd.org (Postfix) with ESMTP id CFB428FC1E; Thu, 23 Oct 2008 16:35:02 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp022.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K97006SLA2DIZ00@asmtp022.mac.com>; Thu, 23 Oct 2008 09:35:02 -0700 (PDT) Message-id: <29F8C203-E193-4D4A-91E3-2545AA0594BD@mac.com> From: Marcel Moolenaar To: =?ISO-8859-1?Q?Marius_N=FCnnerich?= In-reply-to: Content-transfer-encoding: quoted-printable Date: Thu, 23 Oct 2008 09:35:00 -0700 References: X-Mailer: Apple Mail (2.929.2) Cc: Ivan Voras , freebsd-geom@freebsd.org Subject: Re: [PATCH] Teach geom_label to recognise gpt labels and uuids X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2008 16:35:03 -0000 On Oct 23, 2008, at 9:21 AM, Marius N=FCnnerich wrote: >> 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} > > I tried something like this but decided against it, no other g_label > is like this. If ent_name is not unique on the system only the first > one is shown, that's consistent with the normal FS labels. The consistency seems forced, based on a limitation then. It's quite valuable to have a label for your disk. >> ese are too long filenames imo. For my taste the ent_uuid is unique > enough as a filename, but there should probably be a way to show which > partition has which ent_uuid with `gpart show`. gpart show has 3 forms: o standard partition type (gpart show ns1% gpart show ad5 =3D> 34 976773101 ad5 GPT (500.1GB) 34 976773101 1 freebsd-zfs (500.1GB) o raw (scheme-specific) type (gpart show -r) ns1% gpart show -r ad5 =3D> 34 976773101 ad5 GPT (500.1GB) 34 976773101 1 = 516e7cba-6ecf-11d6-8ff8-00022d09712b =20 (500.1GB) o partition label (gpart show -l) ns1% gpart show -l ad5 =3D> 34 976773101 ad5 GPT (500.1GB) 34 976773101 1 (null) (500.1GB) There's currently no form for showing a partition ID. > I know that you try to > keep the interface consistent and the other partition types don't have > such a field. Anyway, what do you think about that? It can be added if deemed useful, but it only really applies to GPT... --=20 Marcel Moolenaar xcllnt@mac.com