From owner-freebsd-current Sun Feb 2 14: 6:13 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C31B237B401 for ; Sun, 2 Feb 2003 14:06:11 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDF8443F79 for ; Sun, 2 Feb 2003 14:06:10 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12M684W082677; Sun, 2 Feb 2003 23:06:08 +0100 (CET) (envelope-from phk@freebsd.org) To: Darryl Okahata Cc: freebsd-current@freebsd.org Subject: Re: gbde & vnode md devices? From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 14:00:23 PST." <200302022200.OAA05982@mina.soco.agilent.com> Date: Sun, 02 Feb 2003 23:06:08 +0100 Message-ID: <82676.1044223568@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302022200.OAA05982@mina.soco.agilent.com>, Darryl Okahata writes : >phk@freebsd.org wrote: > >> Say, do you actually have the GEOM_BDE option in your kernel ? > > Sigh, no. I missed it in gbde(4). > > You might want to further idiot-proof gbde(8) with code like: > >err(1, "ioctl(GEOMCONFIGGEOM) (is \"options GEOM_BDE\" in the kernel?)"); Yeah, this will happen. GBDE is the first user of what can only be described as a very green config-API for GEOM classes. One idea I have almost convinced myself to implement, despite its unUNIX like nature is to include a char erortext[256] in the request package because the idea that all errors have integer numbers gets old really really fast with the rather complex conditions some of the GEOM modules test for: return (EYOUARESHRINKINGAPARTITIONWHICHISOPEN) I think not :-) -- 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message