From 11805f2d85a163813cbdd28b5abe93b1695d1614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 28 Jan 2004 23:12:59 +0000 Subject: [PATCH] BlockAllocator::InitializeAndClearBitmap() now also sets the used_blocks field of the super block correctly. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6399 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index ff33211b94..16b269b993 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp @@ -392,6 +392,7 @@ BlockAllocator::InitializeAndClearBitmap(Transaction &transaction) FATAL(("could not allocate reserved space for block bitmap/log!\n")); return B_ERROR; } + fVolume->SuperBlock().used_blocks = HOST_ENDIAN_TO_BFS_INT64(reservedBlocks); return B_OK; }