From owner-freebsd-current@FreeBSD.ORG Tue Jul 28 19:34:26 2009 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 9825A1065670; Tue, 28 Jul 2009 19:34:26 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (host.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 0179C8FC18; Tue, 28 Jul 2009 19:34:25 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [172.21.1.150]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id n6SJYNgd054828 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Jul 2009 21:34:23 +0200 (CEST) (envelope-from h.schmalzbauer@omnilan.de) Message-ID: <4A6F52BE.9000901@omnilan.de> Date: Tue, 28 Jul 2009 21:34:22 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Thunderbird 2.0.0.22 (X11/20090717) MIME-Version: 1.0 To: Dimitry Andric References: <4A5CB2D1.5070106@omnilan.de> <4A5CC981.8010000@omnilan.de> <4A5EDA14.8000703@omnilan.de> <4A5F0F4F.5060505@andric.com> In-Reply-To: <4A5F0F4F.5060505@andric.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCC68A5A0A50769184E5B92D3" Cc: freebsd-current@freebsd.org, Ivan Voras Subject: Re: gmirror provider name limit [Was: Re: geom_label: gpt/labelname for gmirror provider?] 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, 28 Jul 2009 19:34:26 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCC68A5A0A50769184E5B92D3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Dimitry Andric schrieb am 16.07.2009 13:30 (localtime): > On 2009-07-16 09:43, Harald Schmalzbauer wrote: >> I found that the name of the provider for gmirror mustn't exceed 15=20 >> characters. `gmirror` doesn't complain if you specify a provider name = >> longer that 15 characters, but the mirror won't be detected. >> So for example it's impossible to use gptid as provider. >> At least this should be documented in the man page(es, I guess this=20 >> restriction applies to graid3 etc. also) >=20 > As far as I can see, this limit applies to gconcat, gjournal, gmirror, > graid3, gshsec and gstripe: >=20 > sys/geom/concat/g_concat.h:96: char md_provider[16]; /* Hardcoded prov= ider. */ > sys/geom/journal/g_journal.h:292: char md_provider[16]; /* Hardcoded p= rovider. */ > sys/geom/mirror/g_mirror.h:250: char md_provider[16]; /* Hardcoded pro= vider. */ > sys/geom/raid3/g_raid3.h:281: char md_provider[16]; /* Hardcoded provi= der. */ > sys/geom/shsec/g_shsec.h:88: char md_provider[16]; /* Hardcoded provid= er. */ > sys/geom/stripe/g_stripe.h:91: char md_provider[16]; /* Hardcoded prov= ider. */ Are there any problems to expect when extending the array size? To make use og gptid it had to be 43. Anyone willing to commit a patch? Thanks, -Harry --------------enigCC68A5A0A50769184E5B92D3 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.12 (FreeBSD) iEYEARECAAYFAkpvUr8ACgkQLDqVQ9VXb8gNagCeJKj52jxfBlg0VMJva4yf1Chw 4EwAn3Wg/WzVO2KVvLQSi1HpunLMotnH =Q0mD -----END PGP SIGNATURE----- --------------enigCC68A5A0A50769184E5B92D3--