From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 07:39:12 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 86BEC16A4CE for ; Tue, 27 Jan 2004 07:39:12 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0835F43D72 for ; Tue, 27 Jan 2004 07:39:11 -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]) i0RFd1ej634100; Tue, 27 Jan 2004 16:39:02 +0100 Date: Tue, 27 Jan 2004 16:39:01 +0100 (CET) From: Lukas Ertl To: Poul-Henning Kamp In-Reply-To: <4926.1075215823@critter.freebsd.dk> Message-ID: <20040127163829.I92925@pcle2.cc.univie.ac.at> References: <4926.1075215823@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: imap 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:39:12 -0000 On Tue, 27 Jan 2004, Poul-Henning Kamp wrote: > In message <20040127160001.N92925@pcle2.cc.univie.ac.at>, Lukas Ertl writes: > > > >In the geom_vinum case I allocate the "main" vinum geom in the init > >method, and this might fail. > > > >(Of course, this might not be the correct way to do it, but I couldn't > >think of another way.) > > You're right, it isn't :-) > > You should never allocate anything until you first time taste a disk > which looks like yours. Ok, then how do I spawn a complete class from the tasting routine of another class? regards, le -- 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/