| 18 | static StringFlag tracksFlag({"-t", "--tracks"}, "tracks to copy"); |
| 19 | |
| 20 | static const TrackFluxProto* findTrack( |
| 21 | const FluxFileProto& f, int cylinder, int head) |
| 22 | { |
| 23 | for (const auto& trackFlux : f.track()) |
| 24 | if ((trackFlux.track() == cylinder) && (trackFlux.head() == head)) |
| 25 | return &trackFlux; |
| 26 | |
| 27 | return nullptr; |
| 28 | } |
| 29 | |
| 30 | static TrackFluxProto* findOrMakeTrack(FluxFileProto& f, int cylinder, int head) |
| 31 | { |