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:
Axel Dörfler
2004-02-09 00:11:31 +00:00
parent a957866a22
commit 9d37202871
@@ -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;