* adfCountFreeBlocks * */
| 78 | * |
| 79 | */ |
| 80 | int32_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 | /* |
no test coverage detected