Date: Fri, 10 May 1996 05:20:16 +0200 (SAT) From: Robert Nordier <rnordier@iafrica.com> To: bde@zeta.org.au (Bruce Evans) Cc: hackers@FreeBSD.ORG Subject: Re: [Q] Raw interface to block devices Message-ID: <199605100320.FAA00842@eac.iafrica.com> In-Reply-To: <199605100121.LAA20111@godzilla.zeta.org.au> from "Bruce Evans" at May 10, 96 11:21:39 am
next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote: > devname(3) seems to be almost what you want. You can stat the first name > to get the dev number and then call devname() to get the other name. It > searches quickly through all the names in /var/run/dev.db. I've just tried that, and it seems to be _exactly_ what I want. :-) > devname() seems to be used only in ps and pstat. It should be used in > badsect, fsck ... (fsck has its own functions rawname() and unrawname()). > > ps has a bogus private copy of /usr/src/lib/libc/gen/devname.c. I was looking at fsck, and rather hoped for something better. Thanks! -- Robert Nordier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605100320.FAA00842>