From owner-cvs-all Sat Sep 9 4:40: 6 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 881BF37B424; Sat, 9 Sep 2000 04:40:00 -0700 (PDT) Received: (from phk@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA58169; Sat, 9 Sep 2000 04:40:00 -0700 (PDT) (envelope-from phk@FreeBSD.org) Message-Id: <200009091140.EAA58169@freefall.freebsd.org> From: Poul-Henning Kamp Date: Sat, 9 Sep 2000 04:40:00 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen devname.3 devname.c src/sys/kern kern_conf.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG phk 2000/09/09 04:40:00 PDT Modified files: lib/libc/gen devname.3 devname.c sys/kern kern_conf.c Log: Add code to devname(3) so it can find the names of devices which were not present when dev_mkdb(8) was run. First the dev_mkdb(8) database is searched, this caters for non-DEVFS cases where people have renamed a device. If that fails we ask the kernel using sysctl kern.devname if the device driver has put a name in the dev_t. This covers DEVFS cloned devices. If that also fails we format a string which isn't entirely useless. Revision Changes Path 1.9 +2 -1 src/lib/libc/gen/devname.3 1.3 +27 -12 src/lib/libc/gen/devname.c 1.81 +28 -1 src/sys/kern/kern_conf.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message