mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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:
parent
d1e6e6110d
commit
c8d7bcede6
Notes:
sideshowbarker
2024-07-17 03:30:41 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: c8d7bcede6
Pull-request: https://github.com/SerenityOS/serenity/pull/20086
Reviewed-by: https://github.com/gmta ✅
8 changed files with 56 additions and 56 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue