:: commit f1765109ec036a5ba336e5551f0db35e0c27ef75

Mintsuki <mintsuki@protonmail.com> — 2026-02-05 03:13

parents: 5203adcfb4

drivers/disk: Re-add mistakenly removed responsiveness check for EFI volumes

diff --git a/common/drivers/disk.s2.c b/common/drivers/disk.s2.c
index 191ebdfd..a9726773 100644
--- a/common/drivers/disk.s2.c
+++ b/common/drivers/disk.s2.c
@@ -782,6 +782,12 @@ fail:
         if (drive->Media->LogicalPartition)
             continue;
 
+        // Read test to ensure device is responsive (skipping this causes hangs on some systems)
+        status = drive->ReadBlocks(drive, drive->Media->MediaId, 0, 4096, unique_sector_pool);
+        if (status) {
+            continue;
+        }
+
         struct volume *block = ext_mem_alloc(sizeof(struct volume));
 
         bool is_optical = is_efi_handle_optical(handles[i]) ||
tab: 248 wrap: offon