Add new "blind write" option to increase write command performance. This causes issue...
[SCSI2SD-V6.git] / src / firmware / disk.c
index f79842f0469cbb7a39b9e6620296729db8e91d68..f1fd8c869c1da091f0b182381137b2364925720f 100755 (executable)
@@ -551,7 +551,9 @@ int scsiDiskCommand()
 static uint32_t\r
 calcReadahead(uint32_t totalBytes, uint32_t sdSpeedKBs, uint32_t scsiSpeedKBs)\r
 {\r
-       if (scsiSpeedKBs == 0 || scsiDev.hostSpeedMeasured == 0)\r
+       if (!(scsiDev.boardCfg.flags6 & S2S_CFG_ENABLE_BLIND_WRITES) ||\r
+               (scsiSpeedKBs == 0) ||\r
+               (scsiDev.hostSpeedMeasured == 0))\r
        {\r
                return totalBytes;\r
        }\r