summaryrefslogtreecommitdiffstats
path: root/ui/test/discover-test.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-08-21 15:18:48 +1000
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-08-31 14:58:14 +1000
commit70907c3fc4b344d00ce900e6a536e9cc16a35216 (patch)
treed723cafda2c6f32675c9e1ff52c55bce283e4aa5 /ui/test/discover-test.c
parent74ca9eaf3d0dd64560c3eaa132df2e854b51bcdd (diff)
downloadtalos-petitboot-70907c3fc4b344d00ce900e6a536e9cc16a35216.tar.gz
talos-petitboot-70907c3fc4b344d00ce900e6a536e9cc16a35216.zip
Recognise storage devices on USB bus
Users may want to prioritise USB-attached storage devices differently to other devices. Detect if a device is USB-attached and add a new device type to identify it. Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'ui/test/discover-test.c')
-rw-r--r--ui/test/discover-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/test/discover-test.c b/ui/test/discover-test.c
index 363a289..b099b59 100644
--- a/ui/test/discover-test.c
+++ b/ui/test/discover-test.c
@@ -8,6 +8,8 @@ static const char *device_type_string(enum device_type type)
switch (type) {
case DEVICE_TYPE_DISK:
return "disk";
+ case DEVICE_TYPE_USB:
+ return "usb";
case DEVICE_TYPE_NETWORK:
return "network";
case DEVICE_TYPE_OPTICAL:
OpenPOWER on IntegriCloud