DragonFly commits List (threaded) for 2009-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
DragonFly-2.3.1.737.g1c98c master lib/libutil Makefile getdevpath.3 getdevpath.c libutil.h
commit 1c98c6fb38e52717ac59a47a7e70d66f73512974
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Fri Jul 10 13:56:56 2009 -0700
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.
Summary of changes:
lib/libutil/Makefile | 6 +-
lib/libutil/getdevpath.3 | 103 ++++++++++++++++++++++++
lib/libutil/getdevpath.c | 199 ++++++++++++++++++++++++++++++++++++++++++++++
lib/libutil/libutil.h | 5 +
4 files changed, 311 insertions(+), 2 deletions(-)
create mode 100644 lib/libutil/getdevpath.3
create mode 100644 lib/libutil/getdevpath.c
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1c98c6fb38e52717ac59a47a7e70d66f73512974
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]