Преглед изворни кода

initiator: no reason to try to image a drive that is too big for fat32, would waste 30 min of a users time to get the error.

Eric Helgeson пре 2 година
родитељ
комит
8e9a3c0bfc
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 4
      src/BlueSCSI_initiator.cpp

+ 3 - 4
src/BlueSCSI_initiator.cpp

@@ -171,10 +171,9 @@ void scsiInitiatorMainLoop()
                 {
                     // Note: the FAT32 limit is 4 GiB - 1 byte
                     log("Image files equal or larger than 4 GiB are only possible on exFAT filesystem");
-                    log("Please reformat the SD card with exFAT format to image this drive fully");
-
-                    g_initiator_state.sectorcount = (uint32_t)0xFFFFFFFF / g_initiator_state.sectorsize;
-                    log("Will image first 4 GiB - 1 = ", (int)g_initiator_state.sectorcount, " sectors");
+                    log("Please reformat the SD card with exFAT format to image this drive.");
+                    g_initiator_state.sectorsize = 0;
+                    g_initiator_state.sectorcount = g_initiator_state.sectorcount_all = 0;
                 }
             }
             else if (startstopok)