When checkfs stop checking, the block allocator tries to write more blocks than present in fCheckBitmap, so we constrain it
to fNumBlocks. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42594 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1326,6 +1326,8 @@ BlockAllocator::StopChecking(check_control* control)
|
||||
|
||||
int32 blocksInBitmap = fNumGroups * fBlocksPerGroup;
|
||||
size_t blockSize = fVolume->BlockSize();
|
||||
if (blocksInBitmap > (int32)fNumBlocks)
|
||||
blocksInBitmap = fNumBlocks;
|
||||
|
||||
for (int32 i = 0; i < blocksInBitmap; i += 512) {
|
||||
Transaction transaction(fVolume, 1 + i);
|
||||
|
||||
Reference in New Issue
Block a user