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

Function adfCountFreeBlocks

dep/adflib/src/adf_bitm.c:80–91  ·  view source on GitHub ↗

* adfCountFreeBlocks * */

Source from the content-addressed store, hash-verified

78 *
79 */
80int32_t adfCountFreeBlocks(struct Volume* vol)
81{
82 int32_t freeBlocks;
83 int j;
84
85 freeBlocks = 0L;
86 for(j=vol->firstBlock+2; j<=(vol->lastBlock - vol->firstBlock); j++)
87 if ( adfIsBlockFree(vol,j) )
88 freeBlocks++;
89
90 return freeBlocks;
91}
92
93
94/*

Callers 2

getMetadataMethod · 0.85
adfVolumeInfoFunction · 0.85

Calls 1

adfIsBlockFreeFunction · 0.85

Tested by

no test coverage detected