Standard log size is 2048 blocks, not 4096...
Added a ToDo comment so that I don't forget to add the standard indices :) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6381 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
91c89ca37a
commit
b41bf79188
@ -566,7 +566,7 @@ Volume::Initialize(const char *device, const char *name, uint32 blockSize, uint3
|
||||
// cannot use BlockAllocator::BitmapSize() here
|
||||
fSuperBlock.log_blocks = ToBlockRun(AllocationGroups()
|
||||
* fSuperBlock.BlocksPerAllocationGroup() + 1);
|
||||
fSuperBlock.log_blocks.length = 4096;
|
||||
fSuperBlock.log_blocks.length = 2048;
|
||||
// ToDo: set the log size depending on the disk size
|
||||
fSuperBlock.log_start = fSuperBlock.log_end = HOST_ENDIAN_TO_BFS_INT64(ToBlock(Log()));
|
||||
|
||||
@ -602,6 +602,8 @@ Volume::Initialize(const char *device, const char *name, uint32 blockSize, uint3
|
||||
if ((flags & VOLUME_NO_INDICES) == 0) {
|
||||
if ((status = CreateIndicesRoot(&transaction)) < B_OK)
|
||||
return status;
|
||||
|
||||
// ToDo: add "name", "last_modified", and "size" indices
|
||||
}
|
||||
|
||||
WriteSuperBlock();
|
||||
|
Loading…
Reference in New Issue
Block a user