summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-24 17:31:50 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 17:31:50 +0800
commit995e08e3de9aaff81e72227587ffcb4cc78175d0 (patch)
tree3f523456384a0e5431c61eb5373c185614853736 /discover/device-handler.h
parent25e4608e9e4572b3a835f7c43a8ec9c77125f492 (diff)
downloadtalos-petitboot-995e08e3de9aaff81e72227587ffcb4cc78175d0.tar.gz
talos-petitboot-995e08e3de9aaff81e72227587ffcb4cc78175d0.zip
discover: Check for devices with duplicate serial properties
If we have multipath devices present in the system, we'll end up with duplicate mounts, parse results and boot options. This change adds a check to see if we've encountered a device with this serial number previously. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r--discover/device-handler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index 1d78a49..854be48 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -108,6 +108,9 @@ struct discover_device *device_lookup_by_label(struct device_handler *handler,
const char *label);
struct discover_device *device_lookup_by_id(struct device_handler *handler,
const char *id);
+struct discover_device *device_lookup_by_serial(
+ struct device_handler *device_handler,
+ const char *serial);
void discover_device_set_param(struct discover_device *device,
const char *name, const char *value);
OpenPOWER on IntegriCloud