From owner-freebsd-current@FreeBSD.ORG Mon Jun 2 20:23:30 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F3BD5337; Mon, 2 Jun 2014 20:23:29 +0000 (UTC) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id B6D8020C8; Mon, 2 Jun 2014 20:23:28 +0000 (UTC) Received: from localhost (89-78-109-105.dynamic.chello.pl [89.78.109.105]) by mail.dawidek.net (Postfix) with ESMTPSA id C4B841C5; Mon, 2 Jun 2014 22:23:20 +0200 (CEST) Date: Mon, 2 Jun 2014 22:26:39 +0200 From: Pawel Jakub Dawidek To: jmg@FreeBSD.org Subject: Re: diskid documentation Message-ID: <20140602202639.GA1668@garage.freebsd.pl> References: <20140601134147.GA99583@bewilderbeast.blackhelicopters.org> <538C7B71.20109@freebsd.org> <20140602153651.GB4116@bewilderbeast.blackhelicopters.org> <20140602180108.GX43976@funkthat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <20140602180108.GX43976@funkthat.com> X-OS: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.22 (2013-10-16) Cc: geom@freebsd.org, FreeBSD Current , Ryan Stone , Allan Jude , "Michael W. Lucas" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Mon, 02 Jun 2014 20:23:30 -0000 --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 02, 2014 at 11:01:08AM -0700, John-Mark Gurney wrote: > Michael W. Lucas wrote this message on Mon, Jun 02, 2014 at 11:36 -0400: > > On Mon, Jun 02, 2014 at 10:45:52AM -0400, Ryan Stone wrote: > > > On Mon, Jun 2, 2014 at 9:26 AM, Allan Jude wr= ote: > > > > It also tends to sometimes hide the gpt label provider on me (not s= ure > > > > in which cases it does this, but it is annoying) > > >=20 > > > This happens when something (e.g. zfs) happens to open the diskid > > > provider instead of the gpt label. For me this ended up being a bit > > > more than annoying; my swap was mounted in /etc/fstab via a gpt label > > > so I silently lost my swap when I did an upgrade. > >=20 > > Wait-- one type of one label can hide another? > >=20 > > I thought a big point of labels was to remove ambiguity... >=20 > Surprisingly, yes... I didn't think about this, but it's true... >=20 > A disk will get exported via two different devices, diskid and normal > da/ada... The tasting will go through and create all the necessary > sub devices, but the problem is that we now have two different paths, > and if something opens the diskid path, then the da/ada paths all > disappear... >=20 > This sounds like we need to fix geom to "bind" the two together so > that when one opens, the other doesn't disappear... The problem is > that geom views them as two separate disks when in fact they are the > same... someone who knows geom well should think about how to solve > this problem, as diskid isn't the first time this has happened, just > most prevalent w/ ZFS and diskid. The problem is that GPT labels (or GPT IDs for that matter) should not be implemented within GLABEL. This is wrong. It should be implemented as part of GPART, so that GPART would create ada0p1, gpt/label and gptid/whatever. Opening one of those should not make the others disappear then. Only opening ada0 for writting would make them disappear. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://mobter.com --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlOM3f8ACgkQForvXbEpPzRXRQCfbsUELlDNxBWilZ/z3MZqXA4K oaUAnjBo1EEECt0LuBmoa2UeVVBt3GKr =mi4Q -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO--