]> git.ozlabs.org Git - petitboot/commit
discover: Consolidate device path, name and ID.
authorJeremy Kerr <jk@ozlabs.org>
Wed, 18 Sep 2013 03:49:14 +0000 (11:49 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 19 Sep 2013 05:12:40 +0000 (13:12 +0800)
commite52b37c27c267c882d82cd1e34412817b5a4dbce
tree90e9283ff3ab0c16c59f90adfa38d40771773123
parentbad9baa8794ed0c31b7f93b110815d98db7b2d7a
discover: Consolidate device path, name and ID.

This change cleans up our usage of device path, names and IDs.

Device ID is the kernel name for the device. We also expose this through
lookup_by_name.

Device path is the path to the dev node (ie, always starts with /dev/),
and is only used for mounting.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
discover/device-handler.h
discover/udev.c