From owner-freebsd-current@FreeBSD.ORG Tue Jul 28 19:56:00 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 110B31065672 for ; Tue, 28 Jul 2009 19:56:00 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213]) by mx1.freebsd.org (Postfix) with ESMTP id 6DAAC8FC15 for ; Tue, 28 Jul 2009 19:55:58 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by ewy9 with SMTP id 9so178973ewy.43 for ; Tue, 28 Jul 2009 12:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=CANNnCSppy/rngY/2j47QHw1A/m07ifLqSGtqdFpmFY=; b=CVfauprBLmvx/1Mcg1zF1jZJdVy68ubrv3bX9qP2+clS8JIR2Bf2higHdxLHLQhCPc RL3lTylAw51uVZWFXXky8bJEMUBefRj0v2ozlZZI0CSfbpGT1ZcUy2DA+go7C5F0Ko6N /nLQFlJwvNRx8rVdZFosRWfCE3OvnAmkRkZ20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=XC0Ag9UF5BvCAJHYas874qusYVXgFeLjNHrVV6GEBEqY2ahCbc/mnz11Eq6oOGlVIY pOZlqGrA8Zw76BaojSeaPrfXLwXOeACRdTvmAaiX4mtE3jG0qwLs5KpCKR5qW+VerOqv fm0Tk++hU74Bn4q4E5VPzCVclFA7iQZ2dEVvY= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.210.129.20 with SMTP id b20mr7148198ebd.83.1248810958084; Tue, 28 Jul 2009 12:55:58 -0700 (PDT) In-Reply-To: <4A6F52BE.9000901@omnilan.de> References: <4A5CB2D1.5070106@omnilan.de> <4A5CC981.8010000@omnilan.de> <4A5EDA14.8000703@omnilan.de> <4A5F0F4F.5060505@andric.com> <4A6F52BE.9000901@omnilan.de> From: Ivan Voras Date: Tue, 28 Jul 2009 21:55:38 +0200 X-Google-Sender-Auth: 400782df05a2ace1 Message-ID: <9bbcef730907281255u3f426923g886893585899d210@mail.gmail.com> To: Harald Schmalzbauer Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Dimitry Andric , freebsd-current@freebsd.org 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:56:00 -0000 2009/7/28 Harald Schmalzbauer : > 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 >>> characters. `gmirror` doesn't complain if you specify a provider name l= onger >>> 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: =C2=A0char =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0md_provider[16]; /* >> Hardcoded provider. */ >> sys/geom/journal/g_journal.h:292: =C2=A0 =C2=A0 =C2=A0 char =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0md_provider[16]; >> /* Hardcoded provider. */ >> sys/geom/mirror/g_mirror.h:250: char =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0md_provider[16]; /* >> Hardcoded provider. */ >> sys/geom/raid3/g_raid3.h:281: =C2=A0 char =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0md_provider[16]; /* >> Hardcoded provider. */ >> sys/geom/shsec/g_shsec.h:88: =C2=A0 =C2=A0char =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0md_provider[16]; /* >> Hardcoded provider. */ >> sys/geom/stripe/g_stripe.h:91: =C2=A0char =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0md_provider[16]; /* >> Hardcoded provider. */ > > Are there any problems to expect when extending the array size? If you mean the char array of the provider name then yes, it cannot be done without introducing a new metadata version (and then if it fits). > To make use og gptid it had to be 43. I don't follow you on this - why gptid and why 43? --=20 f+rEnSIBITAhITAhLR1nM9F4cIs5KJrhbcsVtUIt7K1MhWJy1A=3D=3D