| 379 | } |
| 380 | |
| 381 | void freeBlock(int block) |
| 382 | { |
| 383 | if (block >= _filesystemBlocks) |
| 384 | throw BadFilesystemException(); |
| 385 | |
| 386 | if (!_allocationBitmap[block]) |
| 387 | throw BadFilesystemException(); |
| 388 | _allocationBitmap[block] = false; |
| 389 | } |
| 390 | |
| 391 | unsigned blockToLogicalSectorNumber(int block) |
| 392 | { |
nothing calls this directly
no test coverage detected