From owner-freebsd-fs@FreeBSD.ORG Mon Oct 24 05:39:59 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9E87106566C for ; Mon, 24 Oct 2011 05:39:59 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 6CA5A8FC17 for ; Mon, 24 Oct 2011 05:39:59 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id 982F17CD; Mon, 24 Oct 2011 07:39:57 +0200 (CEST) Date: Mon, 24 Oct 2011 07:39:10 +0200 From: Pawel Jakub Dawidek To: Jeremy Chadwick Message-ID: <20111024053909.GK1697@garage.freebsd.pl> References: <20111024011426.GA57172@icarus.home.lan> <20111024014616.GA57735@icarus.home.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ee6FjwWxuMujAVRe" Content-Disposition: inline In-Reply-To: <20111024014616.GA57735@icarus.home.lan> X-OS: FreeBSD 9.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org Subject: Re: Anyway to change pool to use the gpt label instead of gptid? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2011 05:39:59 -0000 --ee6FjwWxuMujAVRe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 23, 2011 at 06:46:16PM -0700, Jeremy Chadwick wrote: > On Sun, Oct 23, 2011 at 08:24:54PM -0500, Larry Rosenman wrote: > > On Sun, 23 Oct 2011, Jeremy Chadwick wrote: > >=20 > > > > > > > > >Aren't GPT labels stored in the /dev/gpt directory structure? > > Nope, they're eaten: > >=20 > > $ ls /dev/gpt > > swap0 > > swap1 > > swap2 > > swap3 > > swap4 > > swap5 > > $ >=20 > This looks like a bug or design oddity in GEOM. Based on your setup you > should have swap[0-5] and disk[0-5] in /dev/gpt, not just swap[0-5]. Not in GEOM, but in GPT labels implementation. It should be part of PART class, not LABEL class. Because of this, when one opens corresponding adap for writing, both gpt/