Commit ad71d72
committed
drives: fix floppy speed test warmup and OFS block size reporting
The floppy speed test warm-up read was previously attempting to read
an entire track buffer. This large read could fail due to timing or
settling issues, causing the speed test dialog to abort immediately
because the error was treated as fatal.
Reduce the warm-up read size to a single block (typically 512 bytes)
to minimize failure risk while still ensuring the drive head is on
track. Additionally, treat warm-up read errors as non-fatal warnings
to allow the actual benchmark to proceed.
Also fix an issue where the block size for OFS volumes was being
reported incorrectly (e.g., 464 bytes instead of 488). The `Info()`
call returns the logical block size (488 for OFS), which was
overwriting the physical block size (512) obtained from `DosEnvec`.
The display logic then subtracted the 24-byte overhead again.
Prevent `Info()` from overwriting `bytes_per_block` if it has already
been populated by `DosEnvec`, ensuring the display logic calculates
the usable block size correctly from the physical size.1 parent 95b15e4 commit ad71d72
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
305 | 308 | | |
306 | 309 | | |
307 | 310 | | |
| |||
587 | 590 | | |
588 | 591 | | |
589 | 592 | | |
590 | | - | |
| 593 | + | |
591 | 594 | | |
592 | 595 | | |
593 | 596 | | |
594 | 597 | | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
| 598 | + | |
602 | 599 | | |
603 | 600 | | |
604 | 601 | | |
| |||
0 commit comments