Date: Fri, 29 Apr 2011 20:55:18 +0400 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: FreeBSD Current <freebsd-current@FreeBSD.org> Cc: Alexander Motin <mav@freebsd.org>, Marcel Moolenaar <marcel@FreeBSD.org>, Pawel Jakub Dawidek <pjd@FreeBSD.org>, Andriy Gapon <avg@freebsd.org>, freebsd-geom@FreeBSD.org Subject: Re: A replacement for GEOM_LABEL's gpt/gptid Message-ID: <4DBAED76.3030006@FreeBSD.org> In-Reply-To: <4DB7C7B7.9020201@FreeBSD.org> References: <4DB54F40.8050608@FreeBSD.org> <4DB7C7B7.9020201@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig07C541EA257C46C2C8FDE7DC Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable 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 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 --=20 WBR, Andrey V. Elsukov --------------enig07C541EA257C46C2C8FDE7DC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJNuu19AAoJEAHF6gQQyKF6az8H/1GlmfSFG0IknQyKyMuUj7j9 4eFLauZ7n2kiIbtxAG+b5ep1fmJMigBG0LeQdceuh7PESSPcrPQuncCoUo0vRQ7K offDjg9DuqD7IYmXRlEPv4EZxL4beSBD8z4fTuZrCbBWUKlpnAVPeL40ruzJYdhO zU7+KHpl74pGSUzKYdUcf85LFrJiyjjK0RsqvJi052CJY7fNrGGX7B48/itnMiJN k20qEOG8tNMcDlCJqDxMBD77gXrZQ1+mc6aVzBIT27uoXA0y/oXcGYKw6YETc14B BzN90Wq3n6GQq60CArypBYO/07alXiusDCs0Bj0q1zcnyCju3jy+SWXqHrZrzQ0= =5S04 -----END PGP SIGNATURE----- --------------enig07C541EA257C46C2C8FDE7DC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DBAED76.3030006>