From owner-freebsd-stable@FreeBSD.ORG Wed Oct 13 08:10:46 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 6D98F106564A for ; Wed, 13 Oct 2010 08:10:46 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id B40828FC0C for ; Wed, 13 Oct 2010 08:10:44 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA04233; Wed, 13 Oct 2010 11:10:39 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1P5wQ2-00027Z-UK; Wed, 13 Oct 2010 11:10:39 +0300 Message-ID: <4CB5697D.8080000@icyb.net.ua> Date: Wed, 13 Oct 2010 11:10:37 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Stefan Bethke References: <20101012185100.5AA661CC3E@ptavv.es.net> <4CB53BF7.1020408@yandex.ru> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org, "Andrey V. Elsukov" 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 08:10:46 -0000 on 13/10/2010 09:29 Stefan Bethke said the following: > Am 13.10.2010 um 06:56 schrieb Andrey V. Elsukov: >> 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.) da2p1 is a "real" underlying provider, "ufs/mylabel" is a "convenience" provider on _top_ of it. When you open a top-most provider it doesn't affect provides under it. If you open a provider down the chain, then the providers above it are spoiled. Does it make sense now? -- Andriy Gapon