summaryrefslogtreecommitdiffstats
path: root/discover/udev.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-18 11:49:14 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-19 13:12:40 +0800
commite52b37c27c267c882d82cd1e34412817b5a4dbce (patch)
tree90e9283ff3ab0c16c59f90adfa38d40771773123 /discover/udev.c
parentbad9baa8794ed0c31b7f93b110815d98db7b2d7a (diff)
downloadtalos-petitboot-e52b37c27c267c882d82cd1e34412817b5a4dbce.tar.gz
talos-petitboot-e52b37c27c267c882d82cd1e34412817b5a4dbce.zip
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>
Diffstat (limited to 'discover/udev.c')
-rw-r--r--discover/udev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/discover/udev.c b/discover/udev.c
index d13ced7..f9eb26d 100644
--- a/discover/udev.c
+++ b/discover/udev.c
@@ -125,7 +125,8 @@ static int udev_handle_dev_action(struct udev_device *dev, const char *action)
event->n_params = 0;
event->params = NULL;
- event_set_param(event, "DEVNAME", devnode);
+ event_set_param(event, "path", devpath);
+ event_set_param(event, "node", devnode);
event_set_param(event, "type", devtype);
udev_setup_event_params(dev, event);
OpenPOWER on IntegriCloud