MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / findTrack

Function findTrack

src/fe-fluxfilecp.cc:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18static StringFlag tracksFlag({"-t", "--tracks"}, "tracks to copy");
19
20static 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
30static TrackFluxProto* findOrMakeTrack(FluxFileProto& f, int cylinder, int head)
31{

Callers 1

mainFluxfileCpFunction · 0.85

Calls 1

headMethod · 0.80

Tested by

no test coverage detected