commit 9d755d93d0cfde15705f2c5f64e63f27ee6556b1
Author: Aaron LI <[email protected]>
Date: Fri Jan 1 14:28:58 2021 +0800
devname(3): Remove obsolete code that queries dev.db
In the old days of static /dev, devname(3) would get the name by
querying the /var/run/dev.db created by dev_mkdb(8). Now that we have
dynamic /dev provided by devfs(5), the device name is provided by the
'kern.devname' sysctl, thus obsoleting the db query code.
I've tested to verify that the db query code isn't being used now. So
it's safe to remove this obsolete code. Cleanups to dev_mkdb(8) and
related code would follow.
Meanwhile, update the man page to reflect the current code.
Discussed-with: swildner
Summary of changes:
include/paths.h | 1 -
lib/libc/gen/devname.3 | 12 +++++-------
lib/libc/gen/devname.c | 51 +-------------------------------------------------
3 files changed, 6 insertions(+), 58 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9d755d93d0cfde15705f2c5f64e63f27ee6556b1
--
DragonFly BSD source repository