From owner-freebsd-geom@FreeBSD.ORG Fri Mar 21 18:41:03 2008 Return-Path: Delivered-To: geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3767B106566B for ; Fri, 21 Mar 2008 18:41:03 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id E9F5F8FC1E for ; Fri, 21 Mar 2008 18:41:02 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.64.3]) by phk.freebsd.dk (Postfix) with ESMTP id 4606417105; Fri, 21 Mar 2008 18:41:01 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m2LIf0Ig006383; Fri, 21 Mar 2008 18:41:00 GMT (envelope-from phk@critter.freebsd.dk) To: Marcel Moolenaar From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 21 Mar 2008 10:16:12 MST." <500B8D5E-A46F-48AF-A835-97C46ED36F91@mac.com> Date: Fri, 21 Mar 2008 18:41:00 +0000 Message-ID: <6382.1206124860@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: geom@FreeBSD.org Subject: Re: Q: force/trigger a retaste X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 18:41:03 -0000 In message <500B8D5E-A46F-48AF-A835-97C46ED36F91@mac.com>, Marcel Moolenaar wri tes: >What needs to >happen is that an existing class (i.e. the GPART class) gets to taste >all existing providers again, so that it can attach to providers it >previously did not attach to (due to a change in the supported schemes). >Is this correct? Broadly speaking yes, but you must fire it off as an event so it gets run in the event thread, otherwise the locking falls apart. >Shall I make this a generic GEOM function or keep it private to >GPART? Make it generic, I can imagine other uses. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.