mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 15:19:16 +00:00
FileSystem: Move block_size() from DiskBackedFS to FS
Let's just say that all filesystems have a block size, to keep things nice and simple.
This commit is contained in:
parent
752de9cd27
commit
c0bfea1b5c
Notes:
sideshowbarker
2024-07-19 12:45:34 +09:00
Author: https://github.com/awesomekling
Commit: c0bfea1b5c
4 changed files with 12 additions and 14 deletions
|
@ -76,3 +76,10 @@ void FS::lock_all()
|
|||
}
|
||||
}
|
||||
|
||||
void FS::set_block_size(int block_size)
|
||||
{
|
||||
ASSERT(block_size > 0);
|
||||
if (block_size == m_block_size)
|
||||
return;
|
||||
m_block_size = block_size;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue