From owner-freebsd-stable@FreeBSD.ORG Wed Oct 13 06:33:13 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 511981065670 for ; Wed, 13 Oct 2010 06:33:13 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta05.emeryville.ca.mail.comcast.net (qmta05.emeryville.ca.mail.comcast.net [76.96.30.48]) by mx1.freebsd.org (Postfix) with ESMTP id 36E088FC12 for ; Wed, 13 Oct 2010 06:33:13 +0000 (UTC) Received: from omta08.emeryville.ca.mail.comcast.net ([76.96.30.12]) by qmta05.emeryville.ca.mail.comcast.net with comcast id J6Wd1f0020FhH24A56ZCRq; Wed, 13 Oct 2010 06:33:12 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta08.emeryville.ca.mail.comcast.net with comcast id J6ZB1f0083LrwQ28U6ZBcJ; Wed, 13 Oct 2010 06:33:12 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 816C79B418; Tue, 12 Oct 2010 23:33:11 -0700 (PDT) Date: Tue, 12 Oct 2010 23:33:11 -0700 From: Jeremy Chadwick To: Stefan Bethke Message-ID: <20101013063311.GA51239@icarus.home.lan> References: <20101012185100.5AA661CC3E@ptavv.es.net> <4CB53BF7.1020408@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: stable@freebsd.org, "Andrey V. Elsukov" , pjd@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:33:13 -0000 On Wed, Oct 13, 2010 at 08:29:06AM +0200, Stefan Bethke wrote: > 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. > >> > >> Is there a good reason for this odd behavior of UFS? If there is not a > >> good reason, could it be changed? > > > > 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.) Pulling in pjd@ who can probably shed some light on this. Pawel, you might be interested in this part of the thread specifically: http://lists.freebsd.org/pipermail/freebsd-stable/2010-October/059483.html -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |