Date: Fri, 12 Jun 1998 11:58:25 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.ORG, seggers@semyam.dinoco.de Subject: Re: bin/854: swapinfo shows incorrect information for vnconfig'd swap. Message-ID: <199806120158.LAA24209@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Now I know its dev_mkdb(8) which creates this database. The man >page says it's in since 4.4BSD - at least FreeBSD 2.2-stable from >a few days ago (the configuration I used for testing) had it. ;-) Even FreeBSD-1.x has it. >The fix for the problem is adding a call to dev_mkdb after new >nodes were created by MAKEDEV(8) - that way the device name data- Only if the nodes were created in /dev. They might have been created in ~/testdev. >The perfect solution would always keep both in sync. Something >like DEVFS with a way to ask it for a name for a given device/unit >pair. Maybe /dev/devname.db which gets generated and update by the >DEVFS itself. The downside of this is the added complexity due to >the database code which has to be in the kernel (or is a userland >DEVFS possible?) then. Another impediment for devfs :-). The static database is even more broken if the list of devices can change dynamically. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806120158.LAA24209>