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

Method init

lib/vfs/roland.cc:241–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240private:
241 void init()
242 {
243 _directoryLba = getOffsetOfSector(_config.directory_track(), 0, 0);
244 _sectorSize = getLogicalSectorSize(0, 0);
245
246 _blockSectors = _config.block_size() / _sectorSize;
247
248 _filesystemBlocks = getLogicalSectorCount() / _blockSectors;
249 _midBlock = (getLogicalSectorCount() - _directoryLba) / _blockSectors;
250
251 _dirents.clear();
252 _allocationBitmap.clear();
253 _allocationBitmap.resize(_filesystemBlocks);
254 }
255
256 void rewriteDirectory()
257 {

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected