diff --git a/repos/gems/src/app/sculpt_manager/model/usb_storage_device.h b/repos/gems/src/app/sculpt_manager/model/usb_storage_device.h index 54829ee974..a8b860b3e1 100644 --- a/repos/gems/src/app/sculpt_manager/model/usb_storage_device.h +++ b/repos/gems/src/app/sculpt_manager/model/usb_storage_device.h @@ -87,7 +87,18 @@ struct Sculpt::Usb_storage_device : List_model::Element, * This method is called as response to a failed USB-block-driver * initialization. */ - void discard_usb_block_drv() { Storage_device::state = FAILED; } + void discard_usb_block_drv() + { + Storage_device::state = FAILED; + + /* + * Exclude device from set of inspected file systems. This is needed + * whenever the USB block driver fails sometime after an inspect button + * is activated. + */ + for_each_partition([&] (Partition &partition) { + partition.file_system.inspected = false; }); + } bool discarded() const { return Storage_device::state == FAILED; }