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

Method populateSectors

lib/vfs/fluxsectorinterface.cc:131–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 }
130
131 void populateSectors(unsigned logicalCylinder, unsigned logicalSide)
132 {
133 CylinderHead logicalLocation = {logicalCylinder, logicalSide};
134 auto& ltl = _diskLayout->layoutByLogicalLocation.at(logicalLocation);
135 std::vector<std::shared_ptr<const Track>> trackFluxes;
136 std::vector<std::shared_ptr<const Sector>> trackSectors;
137 readAndDecodeTrack(*_diskLayout,
138 *_fluxSource,
139 *_decoder,
140 ltl,
141 trackFluxes,
142 trackSectors);
143
144 for (const auto& sector : trackSectors)
145 *_loadedSectors.put(logicalLocation, sector->logicalSector) =
146 *sector;
147 _loadedTracks.insert(logicalLocation);
148 }
149
150 std::shared_ptr<const DiskLayout> _diskLayout;
151 std::shared_ptr<FluxSource> _fluxSource;

Callers

nothing calls this directly

Calls 2

readAndDecodeTrackFunction · 0.85
putMethod · 0.45

Tested by

no test coverage detected