Error checking for g_mod_event() and friends

Lukas Ertl l.ertl at univie.ac.at
Tue Jan 27 07:57:54 PST 2004


On Tue, 27 Jan 2004, Poul-Henning Kamp wrote:

> In message <20040127163829.I92925 at pcle2.cc.univie.ac.at>, Lukas Ertl writes:
> >
> >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 "übergeom"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 "übergeoms"?
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

-- 
Lukas Ertl                             eMail: l.ertl at 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/


More information about the freebsd-geom mailing list