mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user