From 16957551b4b26c22eabfbfd228c5bab42fdf16f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 9 Feb 2004 00:12:04 +0000 Subject: [PATCH] Also allow a partial allocation group as the last one. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6536 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../add-ons/kernel/file_systems/bfs/mkbfs/allocationGroups.cpp | 2 +- 1 file changed, 1 insertion(+), 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 e408f9cc85..0d49ec0e1d 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 @@ -49,7 +49,7 @@ main(int argc, char **argv) // files 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;