Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/config



On Fri, Sep 30, 2005 at 08:17:43PM -0400, Perry E. Metzger wrote:
> 
> Quentin Garnier <cube%netbsd.org@localhost> writes:
> > Module Name:        src
> > Committed By:       cube
> > Date:               Fri Sep 30 22:36:20 UTC 2005
> >
> > Modified Files:
> >     src/usr.bin/config: defs.h main.c mkioconf.c pack.c sem.c
> >
> > Log Message:
> > Rework the way orphan device instances are handled.  To achieve that, keep
> > track of instances attaching at root, and walk down the tree of active
> > device instances.  Then, all instances that are not marked active are
> > found as orphans.
> 
> Could we still complain though? Often what happens is I screw up my
> config file by commenting out a parent that I need, and without the
> warning I'll end up without the child device, not having any idea why
> it won't attach no matter what I do. This could get VERY VERY
> annoying.

Yes, the code still complains.  I'll look for a way to detect explicit
orphans (i.e., produced by a 'no' statement) and then I'll change the
warning into a real error, and remove the warning for explicit orphans.

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

Attachment: pgpg72skHjdjI.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index