From owner-freebsd-current@FreeBSD.ORG Thu Jul 16 11:30: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 393551065672; Thu, 16 Jul 2009 11:30:26 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id ED9678FC1A; Thu, 16 Jul 2009 11:30:25 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2001:7b8:3a7:0:507:f2e2:2da7:950f] (unknown [IPv6:2001:7b8:3a7:0:507:f2e2:2da7:950f]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id EE8AB5C59; Thu, 16 Jul 2009 13:30:24 +0200 (CEST) Message-ID: <4A5F0F4F.5060505@andric.com> Date: Thu, 16 Jul 2009 13:30:23 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.1pre) Gecko/20090712 Shredder/3.0b3pre MIME-Version: 1.0 To: Harald Schmalzbauer References: <4A5CB2D1.5070106@omnilan.de> <4A5CC981.8010000@omnilan.de> <4A5EDA14.8000703@omnilan.de> In-Reply-To: <4A5EDA14.8000703@omnilan.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Thu, 16 Jul 2009 11:30:26 -0000 On 2009-07-16 09:43, Harald Schmalzbauer wrote: > I found that the name of the provider for gmirror mustn't exceed 15 > 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 > restriction applies to graid3 etc. also) As far as I can see, this limit applies to gconcat, gjournal, gmirror, graid3, gshsec and gstripe: sys/geom/concat/g_concat.h:96: char md_provider[16]; /* Hardcoded provider. */ sys/geom/journal/g_journal.h:292: char md_provider[16]; /* Hardcoded provider. */ sys/geom/mirror/g_mirror.h:250: char md_provider[16]; /* Hardcoded provider. */ sys/geom/raid3/g_raid3.h:281: char md_provider[16]; /* Hardcoded provider. */ sys/geom/shsec/g_shsec.h:88: char md_provider[16]; /* Hardcoded provider. */ sys/geom/stripe/g_stripe.h:91: char md_provider[16]; /* Hardcoded provider. */