From a957866a224a3cc1bfc9c2a90c5800e65e9d6523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 9 Feb 2004 00:05:12 +0000 Subject: [PATCH] Fixed blocks_per_ag bug and added some more debug output. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6534 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../kernel/file_systems/bfs/mkbfs/allocationGroups.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/add-ons/kernel/file_systems/bfs/mkbfs/allocationGroups.cpp b/src/tests/add-ons/kernel/file_systems/bfs/mkbfs/allocationGroups.cpp index 1f46f9953a..e408f9cc85 100644 --- a/src/tests/add-ons/kernel/file_systems/bfs/mkbfs/allocationGroups.cpp +++ b/src/tests/add-ons/kernel/file_systems/bfs/mkbfs/allocationGroups.cpp @@ -55,11 +55,13 @@ main(int argc, char **argv) break; ag_shift++; - blocks_per_ag++; + blocks_per_ag *= 2; } else break; } + printf("blocks = %Ld\n", numBlocks); + printf("bits per block = %lu\n", bitsPerBlock); printf("bitmap blocks = %Ld\n", bitmapBlocks); printf("allocation groups = %lu\n", num_ags); printf("shift = %lu (%lu)\n", ag_shift, 1UL << ag_shift);