1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

Kernel/FileSystem: Rename block_size -> logical_block_size

Since this is the block size that file system drivers *should* set,
let's name it the logical block size, just like most file systems such
as ext2 already do anyways.
This commit is contained in:
kleines Filmröllchen 2023-07-24 22:17:19 +02:00 committed by Jelle Raaijmakers
parent d1e6e6110d
commit c8d7bcede6
8 changed files with 56 additions and 56 deletions

View file

@ -53,7 +53,7 @@ public:
virtual void flush_writes() { }
u64 block_size() const { return m_block_size; }
u64 logical_block_size() const { return m_logical_block_size; }
size_t fragment_size() const { return m_fragment_size; }
virtual bool is_file_backed() const { return false; }
@ -66,7 +66,7 @@ public:
protected:
FileSystem();
void set_block_size(u64 size) { m_block_size = size; }
void set_logical_block_size(u64 size) { m_logical_block_size = size; }
void set_fragment_size(size_t size) { m_fragment_size = size; }
virtual ErrorOr<void> prepare_to_clear_last_mount([[maybe_unused]] Inode& mount_guest_inode) { return {}; }
@ -75,7 +75,7 @@ protected:
private:
FileSystemID m_fsid;
u64 m_block_size { 0 };
u64 m_logical_block_size { 0 };
size_t m_fragment_size { 0 };
bool m_readonly { false };