1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

Kernel: Expose FileSystem's fragment size

This commit will add a fragment_size() function similar to the
block_size() function.
This commit is contained in:
Justin 2021-05-18 21:04:52 +02:00 committed by Andreas Kling
parent 145e246a5e
commit 721a867c65
Notes: sideshowbarker 2024-07-18 17:46:47 +09:00
3 changed files with 12 additions and 0 deletions

View file

@ -114,6 +114,7 @@ bool Ext2FS::initialize()
}
set_block_size(EXT2_BLOCK_SIZE(&super_block));
set_fragment_size(EXT2_FRAG_SIZE(&super_block));
VERIFY(block_size() <= (int)max_block_size);