Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 May 2011 15:44:27 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        "Andrey V. Elsukov" <ae@FreeBSD.org>
Cc:        FreeBSD Current <freebsd-current@FreeBSD.org>, freebsd-geom@FreeBSD.org
Subject:   Re: A replacement for GEOM_LABEL's gpt/gptid
Message-ID:  <4DBFF8AB.6090401@FreeBSD.org>
In-Reply-To: <4DBAED76.3030006@FreeBSD.org>
References:  <4DB54F40.8050608@FreeBSD.org> <4DB7C7B7.9020201@FreeBSD.org> <4DBAED76.3030006@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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?  I mean completely eliminating g_alias_start() or making 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:
> 	void g_alias_create(struct g_provider *pp, const char *name);
> 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DBFF8AB.6090401>