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

Function findOrMakeTrack

src/fe-fluxfilecp.cc:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static TrackFluxProto* findOrMakeTrack(FluxFileProto& f, int cylinder, int head)
31{
32 for (auto& trackFlux : *f.mutable_track())
33 if ((trackFlux.track() == cylinder) && (trackFlux.head() == head))
34 return &trackFlux;
35
36 TrackFluxProto* tf = f.add_track();
37 tf->set_track(cylinder);
38 tf->set_head(head);
39 return tf;
40}
41
42int mainFluxfileCp(int argc, const char* argv[])
43{

Callers 1

mainFluxfileCpFunction · 0.85

Calls 1

headMethod · 0.80

Tested by

no test coverage detected