Don't throw away any blocks at the end of the disk (we also support truncated
allocation groups). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6535 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -202,7 +202,7 @@ disk_super_block::Initialize(const char *diskName, off_t numBlocks, uint32 block
|
||||
// constant).
|
||||
|
||||
while (true) {
|
||||
num_ags = bitmapBlocks / blocks_per_ag;
|
||||
num_ags = (bitmapBlocks + blocks_per_ag - 1) / blocks_per_ag;
|
||||
if (num_ags > kDesiredAllocationGroups) {
|
||||
if (ag_shift == 16)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user