From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 07:57:54 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD9E416A4CE for ; Tue, 27 Jan 2004 07:57:54 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4436743D69 for ; Tue, 27 Jan 2004 07:57:51 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) i0RFvdUQ093088; Tue, 27 Jan 2004 16:57:44 +0100 Date: Tue, 27 Jan 2004 16:57:39 +0100 (CET) From: Lukas Ertl To: Poul-Henning Kamp In-Reply-To: <5276.1075218356@critter.freebsd.dk> Message-ID: <20040127165312.R92925@pcle2.cc.univie.ac.at> References: <5276.1075218356@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-DCC-ZID-Univie-Metrics: mailbox 4244; Body=0 Fuz1=0 Fuz2=0 cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 15:57:54 -0000 On Tue, 27 Jan 2004, Poul-Henning Kamp wrote: > In message <20040127163829.I92925@pcle2.cc.univie.ac.at>, Lukas Ertl writ= es: > > > >Ok, then how do I spawn a complete class from the tasting routine of > >another class? > > You don't. > > You initialize the classes when they are loaded. Once you taste > something you like, you start creating "=FCbergeom"s and what else > you need. Ok, makes sense. So I need to re-think this. What I don't understand right now is: how do I create these "=FCbergeoms"? The problem I'm faced is this: I need to keep a copy of the vinum configuration somewhere where it isn't touched by an occasional orphaning and self-destruction massacre when a disk fails. My idea was to have a separate class VINUM that just holds the config, but isn't actually connected to the I/O path, so the other vinum geoms (for volume, plex, a.s.o.) could peek at the config and decide what to do. Pointers into the right direction are highly appreciated. regards, le --=20 Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/