Source-Changes-HG archive

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

[src/trunk]: src/sys/kern When searching for devices also skip those deleted ...



details:   https://anonhg.NetBSD.org/src/rev/402b7a4a8277
branches:  trunk
changeset: 525671:402b7a4a8277
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Mon Apr 15 05:30:12 2002 +0000

description:
When searching for devices also skip those deleted by userconf.
Problem reported by uwe.

diffstat:

 sys/kern/subr_autoconf.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 6163985b608e -r 402b7a4a8277 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Mon Apr 15 04:13:25 2002 +0000
+++ b/sys/kern/subr_autoconf.c  Mon Apr 15 05:30:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.62 2002/02/15 11:18:26 simonb Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.63 2002/04/15 05:30:12 gmcgarry Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -81,7 +81,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.62 2002/02/15 11:18:26 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.63 2002/04/15 05:30:12 gmcgarry Exp $");
 
 #include "opt_ddb.h"
 
@@ -239,6 +239,9 @@
                 */
                if (cf->cf_fstate == FSTATE_FOUND)
                        continue;
+               if (cf->cf_fstate == FSTATE_DNOTFOUND ||
+                   cf->cf_fstate == FSTATE_DSTAR)
+                       continue;
                for (p = cf->cf_parents; *p >= 0; p++)
                        if (parent->dv_cfdata == &cfdata[*p])
                                mapply(&m, cf);



Home | Main Index | Thread Index | Old Index