mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +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
4 changed files with 12 additions and 14 deletions
|
@ -61,13 +61,18 @@ public:
|
|||
|
||||
virtual void flush_writes() {}
|
||||
|
||||
int block_size() const { return m_block_size; }
|
||||
|
||||
protected:
|
||||
FS();
|
||||
|
||||
void set_block_size(int);
|
||||
|
||||
mutable Lock m_lock { "FS" };
|
||||
|
||||
private:
|
||||
unsigned m_fsid { 0 };
|
||||
int m_block_size { 0 };
|
||||
bool m_readonly { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue