From owner-freebsd-geom@FreeBSD.ORG Thu Aug 1 10:33:43 2013 Return-Path: Delivered-To: freebsd-geom@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 ESMTP id 86FFC424; Thu, 1 Aug 2013 10:33:43 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2EC2892; Thu, 1 Aug 2013 10:33:43 +0000 (UTC) Received: from [10.132.68.200] (user-94-254-132-5.play-internet.pl [94.254.132.5]) by mail.dawidek.net (Postfix) with ESMTPSA id 7FD286F5; Thu, 1 Aug 2013 12:28:34 +0200 (CEST) References: <20130730214114.GL13659@lor.one-eyed-alien.net> <331012162.20130801122156@serebryakov.spb.ru> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: X-Mailer: iPhone Mail (10B329) From: "dawidek.net" Subject: Re: How to disable all GEOM tasting? Date: Thu, 1 Aug 2013 12:33:18 +0200 To: Luca Ferrari Cc: Rotate 13 , "lev@freebsd.org" , Brooks Davis , "freebsd-geom@freebsd.org" X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2013 10:33:43 -0000 Dnia 1 sie 2013 o godz. 11:16 Luca Ferrari napisa=C5= =82(a): > On Thu, Aug 1, 2013 at 10:21 AM, Lev Serebryakov wrote: >> Hello, Luca. >> You wrote 1 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2013 =D0=B3., 11:3= 1:21: >>=20 >> LF> However, I don't get the whole point in disabling tasting: it is >> LF> required for proper system functioning. >> Presence of a lot (and "a lot" could mean THOUSANDS -- think about regu= lar ZVOLs >> snapshots on iSCSI-used NAS) of "foreign" "block devices". >=20 > Uhm...but in such case the class should have a g_taste set to NULL to > avoid tasting on itself. What I was saying is that disabling taste > system wide (i.e., in the geom subsystem) cannot work. > Am I wrong? The biggest problem with disabling tasting is that the corresponding entries= won't be created in /dev/. There is the DEV GEOM class, which create those e= ntries from its taste method. I do see a value in being able to temporairly disable tasting in some emerge= ncy situations, but there is no way to do that now. Taste methods are called from three different places: 1. When new provider is created all GEOM classes are noticed. 2. When new GEOM class is loaded it gets all existing providers for tasting.= 3. When the last consumer that had provider open for writing closes its acce= ss, GEOM notices all the classes again, as writes might have changed provide= r's metadata and classes may be able to find something interesting now. --=20 Pawe=C5=82 Jakub Dawidek=