]> git.ozlabs.org Git - petitboot/commit
discover: Add uuid and label parameters to persistent device data
authorJeremy Kerr <jk@ozlabs.org>
Thu, 28 Feb 2013 09:05:06 +0000 (17:05 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 29 Apr 2013 04:31:20 +0000 (14:31 +1000)
commit3b29ff8c2a6489b9517d61c0f63256a1ad0c36f7
tree437303aa325dd4d392f962beca08f6f30c5d216a
parent06a49ebdfc795a70b938f5aee29f3c488ef9fc21
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 <jk@ozlabs.org>
discover/device-handler.c
discover/device-handler.h