libutil - add getdevpath()
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 10 Jul 2009 20:56:56 +0000 (13:56 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 10 Jul 2009 20:56:56 +0000 (13:56 -0700)
commit1c98c6fb38e52717ac59a47a7e70d66f73512974
treef8466db1e539868c2dda6f3b6607e5571de2a773
parent37845db386dc9a6f102da5dba89193f2e8efa234
libutil - add getdevpath()

Add the getdevpath() function which translates a device name such as "da0",
or label such as "fubar", into a device path.  This function searches
/usr/local/etc/devtab, /etc/devtab, and /etc/defaults/devtab for labels.
Device names beginning with '/' or '.' are assumed to be paths and passed
through.
lib/libutil/Makefile
lib/libutil/getdevpath.3 [new file with mode: 0644]
lib/libutil/getdevpath.c [new file with mode: 0644]
lib/libutil/libutil.h