From owner-freebsd-stable@FreeBSD.ORG Wed Oct 13 06:29:10 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E8BB1065672 for ; Wed, 13 Oct 2010 06:29:10 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 3437E8FC1F for ; Wed, 13 Oct 2010 06:29:10 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id B68D9AE859; Wed, 13 Oct 2010 08:29:08 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Stefan Bethke In-Reply-To: <4CB53BF7.1020408@yandex.ru> Date: Wed, 13 Oct 2010 08:29:06 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20101012185100.5AA661CC3E@ptavv.es.net> <4CB53BF7.1020408@yandex.ru> To: Andrey V. Elsukov X-Mailer: Apple Mail (2.1081) Cc: stable@freebsd.org Subject: Re: Label question...why does ufs label vanish on mount? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2010 06:29:10 -0000 Am 13.10.2010 um 06:56 schrieb Andrey V. Elsukov: > On 12.10.2010 22:51, Kevin Oberman wrote: >> For some reason the /dev/ufs/label entry that geom creates for every = UFS >> formatted partition is deleted when the device is mounted. This is = not >> the case for other file systems, though I have not tried them all. It >> makes the drive much harder to deal with when you have to keep track = of >> which physical drive contains the labeled media. It is a particular >> issue for hald and the tools which depend on it. >>=20 >> Is there a good reason for this odd behavior of UFS? If there is not = a >> good reason, could it be changed? >=20 > When you are opening provider for writing (i.e. mount FS) GEOM(4) > initiates SPOILING and all consumers that are attached to this = provider > except one will self-destroyed. When you are closing provider GEOM(4) > initiates TASTING and consumers can return back. Look at man 4 geom > for details. That explains the mechanism, but not the rationale. Or is it just an = unintended consequence? And how is da2p1 different from ufs/mylabel? = (Mount da2p1 and ufs/mylabel is removed, but not the other way around.) Stefan --=20 Stefan Bethke Fon +49 151 14070811