From owner-freebsd-bugs Thu Jun 11 14:04:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA29723 for freebsd-bugs-outgoing; Thu, 11 Jun 1998 14:04:51 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA29680 for ; Thu, 11 Jun 1998 14:04:33 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id XAA07323 for freebsd-bugs@freebsd.org; Thu, 11 Jun 1998 23:02:51 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by semyam.dinoco.de (8.8.8/8.8.8) with ESMTP id WAA00644; Thu, 11 Jun 1998 22:36:15 +0200 (CEST) (envelope-from seggers@semyam.dinoco.de) Message-Id: <199806112036.WAA00644@semyam.dinoco.de> To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/854: swapinfo shows incorrect information for vnconfig'd swap. In-reply-to: My message of "Thu, 11 Jun 1998 22:08:30 +0200." <199806112008.WAA04698@semyam.dinoco.de> cc: seggers@semyam.dinoco.de Date: Thu, 11 Jun 1998 22:36:15 +0200 From: Stefan Eggers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > as it can be with this duplication. Sorry, no diff. I just had > the idea and now put it into a reply to the PR. Now I have a diff for FreeBSD 2.2-stable from a few days ago. I tested it with creating some additional vn entries. Seems to work (I tested it with creating vn entries one time with /usr/sbin/dev_mkdb - the other time I renamed this command to make it inaccessible to simulate the sitation during a single user boot when /usr is unavailable) and is simple. The disadvantage is that a "MAKEDEV all" calls it multiple times. As far as I can see this either requires a restructu- ring of MAKEDEV so that it gets a wrapper which the user calls and which does the update of /var/run/dev.db after all the work is done or putting a call to /usr/sbin/dev_mkdb at the end of every case it has. The former is much work and the latter requires massive code replication which will sooner or later lead to someone adding a device but forgetting this. :-( Stefan. *** MAKEDEV.ORIG Wed Mar 25 02:56:49 1998 --- MAKEDEV Thu Jun 11 22:16:31 1998 *************** *** 1163,1165 **** --- 1163,1170 ---- esac done + + # XXX "MAKEDEV all" calls this multiple times though one is enough + if [ -x /usr/sbin/dev_mkdb ]; then + /usr/sbin/dev_mkdb + fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message