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
commit 721a867c65
Notes: sideshowbarker 2024-07-18 17:46:47 +09:00
3 changed files with 12 additions and 0 deletions

View file

@ -81,4 +81,12 @@ void FS::set_block_size(size_t block_size)
m_block_size = block_size;
}
void FS::set_fragment_size(size_t fragment_size)
{
VERIFY(fragment_size > 0);
if (fragment_size == m_fragment_size)
return;
m_fragment_size = fragment_size;
}
}