| 639 | } |
| 640 | |
| 641 | void writeRawDiskCommand(const DiskLayout& diskLayout, |
| 642 | FluxSource& fluxSource, |
| 643 | FluxSinkFactory& fluxSinkFactory) |
| 644 | { |
| 645 | writeTracks( |
| 646 | diskLayout, |
| 647 | fluxSinkFactory, |
| 648 | [&](const std::shared_ptr<const LogicalTrackLayout>& ltl) |
| 649 | { |
| 650 | return fluxSource |
| 651 | .readFlux(ltl->physicalCylinder, ltl->physicalHead) |
| 652 | ->next(); |
| 653 | }, |
| 654 | [](const auto&) |
| 655 | { |
| 656 | return true; |
| 657 | }, |
| 658 | diskLayout.logicalLocations); |
| 659 | } |
| 660 | |
| 661 | void readAndDecodeTrack(const DiskLayout& diskLayout, |
| 662 | FluxSource& fluxSource, |
no test coverage detected