From owner-freebsd-current@FreeBSD.ORG Tue Jul 28 19:57:30 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 52445106566C; Tue, 28 Jul 2009 19:57:30 +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 136A18FC12; Tue, 28 Jul 2009 19:57:30 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2001:7b8:3a7:0:5020:27af:a465:814d] (unknown [IPv6:2001:7b8:3a7:0:5020:27af:a465:814d]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ABF3C5C59; Tue, 28 Jul 2009 21:57:28 +0200 (CEST) Message-ID: <4A6F582A.8050604@andric.com> Date: Tue, 28 Jul 2009 21:57:30 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.2pre) Gecko/20090727 Shredder/3.0b4pre MIME-Version: 1.0 To: Harald Schmalzbauer References: <4A5CB2D1.5070106@omnilan.de> <4A5CC981.8010000@omnilan.de> <4A5EDA14.8000703@omnilan.de> <4A5F0F4F.5060505@andric.com> <4A6F52BE.9000901@omnilan.de> In-Reply-To: <4A6F52BE.9000901@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: Tue, 28 Jul 2009 19:57:30 -0000 On 2009-07-28 21:34, Harald Schmalzbauer wrote: >> 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. */ > > Are there any problems to expect when extending the array size? > To make use og gptid it had to be 43. It looks like most of the schemes use the md_provider field, with a hardcoded size of 16 bytes, in their metadata (usually the last sector on the provider). So it is impossible to increase, without modifying the metadata format.