Subject: Re: effective configuration from config(8) after "no foo"
To: Rhialto <email@example.com>
From: Quentin Garnier <firstname.lastname@example.org>
Date: 12/20/2007 21:22:55
Content-Type: text/plain; charset=us-ascii
On Thu, Dec 20, 2007 at 08:10:06PM +0100, Rhialto wrote:
> On Thu 20 Dec 2007 at 02:36:14 +0100, Quentin Garnier wrote:
> > Merely configuring this:
> > include "arch/i386/conf/GENERIC"
> > no mca
> > works, so I'm wondering what your configuration file exactly looks like.
> I've fiddled with it some more, but I can re-create the error condition.
> (This is with a -current from about a week ago, in case it matters)
> ../../../../arch/i386/conf/GENERIC:864: `ed* at edc?' is orphaned (nothin=
g matching `edc?' found)
> ../../../../arch/i386/conf/GENERIC:1338: `wsmouse* at btms?' is orphaned =
(nothing matching `btms?' found)
> *** Stop.
> The config file is attached since it is a bit long to put it inline.
While there is indeed an abnormal behaviour, it is because of the lines:
no device at something?
The second one is not needed, as it is (kind of) implied by the first
line. I.e., if you negate all instances of a driver, all its children
will be ignored, as otherwise they'd be orphans.
I'm still analysing why it happens, but in the end I should probably
error out on the second line, because the attachment is not provided by
any configured instance at that point. Although such checks are
probably missing for other negations, too. For instance, the following
passes, which is questionable:
> > I'm pretty sure I still have it, so I can do it :)
> That sounds very useful to me. Please go ahead with committing it.
I'll see about that in a couple days.
Quentin Garnier - email@example.com - cube@NetBSD.org
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)
-----END PGP SIGNATURE-----