path: root/discover/udev.c
diff options
authorJeremy Kerr <>2013-09-18 11:49:14 +0800
committerJeremy Kerr <>2013-09-19 13:12:40 +0800
commite52b37c27c267c882d82cd1e34412817b5a4dbce (patch)
tree90e9283ff3ab0c16c59f90adfa38d40771773123 /discover/udev.c
parentbad9baa8794ed0c31b7f93b110815d98db7b2d7a (diff)
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 <>
Diffstat (limited to 'discover/udev.c')
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