From owner-freebsd-current@FreeBSD.ORG Tue May 3 18:13:06 2011 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 74F4E1065670; Tue, 3 May 2011 18:13:06 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from mail-px0-f176.google.com (mail-px0-f176.google.com [209.85.212.176]) by mx1.freebsd.org (Postfix) with ESMTP id 481778FC0C; Tue, 3 May 2011 18:13:06 +0000 (UTC) Received: by pxi11 with SMTP id 11so234092pxi.35 for ; Tue, 03 May 2011 11:13:06 -0700 (PDT) Received: by 10.68.51.194 with SMTP id m2mr146659pbo.180.1304444595049; Tue, 03 May 2011 10:43:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.54.71 with HTTP; Tue, 3 May 2011 10:42:55 -0700 (PDT) In-Reply-To: <4DBFF8AB.6090401@FreeBSD.org> References: <4DB54F40.8050608@FreeBSD.org> <4DB7C7B7.9020201@FreeBSD.org> <4DBAED76.3030006@FreeBSD.org> <4DBFF8AB.6090401@FreeBSD.org> From: =?UTF-8?Q?Marius_N=C3=BCnnerich?= Date: Tue, 3 May 2011 19:42:55 +0200 Message-ID: To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "Andrey V. Elsukov" , FreeBSD Current , freebsd-geom@freebsd.org Subject: Re: A replacement for GEOM_LABEL's gpt/gptid X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2011 18:13:06 -0000 Hi Andrey, just want to say you don't have to wait for me anymore. Just can't find the time to analyze your aproach. Thanks for your work on this. 2011/5/3 Andriy Gapon : > on 29/04/2011 19:55 Andrey V. Elsukov said the following: >> On 27.04.2011 11:37, Andrey V. Elsukov wrote: >>>> I wrote a small extension for the GEOM_PART class. It adds an ability >>>> to GEOM_PART class to create partition labels for schemes which are >>>> support them. >> >> Hi All, >> >> i got several successful reports from users, but now i decided to make >> this functional available for another consumers. >> New patch: >> http://people.freebsd.org/~ae/geom_alias.diff > > I really like your approach. > One question - is it somehow possible to make the alias geom even more > transparent? =C2=A0I mean completely eliminating g_alias_start() or makin= g it more > noop-ish. > > Thank you! > >> What it contains: >> * gpt/gptid support removed from GEOM_LABEL class; >> * new GEOM_ALIAS class added. This class has two public functions: >> =C2=A0 =C2=A0 =C2=A0 void g_alias_create(struct g_provider *pp, const ch= ar *name); >> =C2=A0 =C2=A0 =C2=A0 void g_alias_spoil(struct g_provider *pp); >> * first two consumers of GEOM_ALIAS class are GEOM_PART and GEOM_DISK: >> >> GEOM_DISK uses g_alias_create() to create aliases for disks, disk's >> serial number is used for alias name. >> >> GEOM_PART uses g_alias_create() to create aliases for labeled partitions >> (gpt/gptid, apm and pc98). >> >> How it looks like: >> http://paste.org.ru/?5exeve >> > > > -- > Andriy Gapon > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" >