Commit 1ee47ae
committed
Fix indefinite looping while guessing head stepping rate.
The old stepping code uses the cylinder number from the disk's ID
Record to switch stepping rates. Some disks this information is
non-conventional or intentionally wrong which can lead to the old
heuristic to make incorrect assumptions flipping the rate back
and forth.
The new approach limits still uses the ID record cylinder number,
but only when transitioning from step 2 to step 1 breaking the
loop.1 parent 7eeceb5 commit 1ee47ae
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2448 | 2448 | | |
2449 | 2449 | | |
2450 | 2450 | | |
2451 | | - | |
2452 | | - | |
2453 | | - | |
| 2451 | + | |
2454 | 2452 | | |
2455 | 2453 | | |
| 2454 | + | |
2456 | 2455 | | |
2457 | 2456 | | |
2458 | 2457 | | |
| |||
0 commit comments