summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-05-30 15:36:45 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-06-12 13:03:55 +1000
commite54e26065cea435fed19b8b2687c87927f1b63f1 (patch)
tree9e3fb8f89aeac264cdab38910ce3c963a03401c1 /discover
parent917f7aa880a7c6ab08991ae0c969d0489ba48845 (diff)
downloadtalos-petitboot-e54e26065cea435fed19b8b2687c87927f1b63f1.tar.gz
talos-petitboot-e54e26065cea435fed19b8b2687c87927f1b63f1.zip
discover: Rescan SCSI devices on reinit
Explicitly rescan SCSI devices on reinit rather than just remounting them in case a device did not init properly on boot. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 569e652..aa61bd2 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -451,6 +451,9 @@ void device_handler_reinit(struct device_handler *handler)
discover_server_notify_config(handler->server, config);
}
+ /* Force rediscovery on SCSI devices */
+ process_run_simple(handler, pb_system_apps.scsi_rescan, NULL);
+
device_handler_reinit_sources(handler);
}
OpenPOWER on IntegriCloud