path: root/discover/device-handler.h
diff options
authorJeremy Kerr <>2013-02-28 17:05:06 +0800
committerJeremy Kerr <>2013-04-29 14:31:20 +1000
commit3b29ff8c2a6489b9517d61c0f63256a1ad0c36f7 (patch)
tree437303aa325dd4d392f962beca08f6f30c5d216a /discover/device-handler.h
parent06a49ebdfc795a70b938f5aee29f3c488ef9fc21 (diff)
discover: Add uuid and label parameters to persistent device data
Rather than depending on the event (which is only available during inital discovery) for UUID and label parameters, this change adds uuid and label members to struct discover_device. This means that the label and UUID are available during the device's lifetime, not just during initial discovery. We can also just pass the device to some of the device handling code, rather than the discover context. Also, fix an issue where we don't use the raw label/uuid (instead of the encoded one) in setup_device_links. Signed-off-by: Jeremy Kerr <>
Diffstat (limited to 'discover/device-handler.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index 809f88e..e298fed 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -17,6 +17,9 @@ struct discover_device {
char **links;
int n_links;
+ char *uuid;
+ char *label;
char *mount_path;
char *device_path;
OpenPOWER on IntegriCloud