mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 23:57:25 +00:00
Kernel: Rename BlockBasedFS => BlockBasedFileSystem
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class BlockBasedFS : public FileBackedFileSystem {
|
||||
class BlockBasedFileSystem : public FileBackedFileSystem {
|
||||
public:
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(u64, BlockIndex);
|
||||
|
||||
virtual ~BlockBasedFS() override;
|
||||
virtual ~BlockBasedFileSystem() override;
|
||||
|
||||
u64 logical_block_size() const { return m_logical_block_size; };
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
void flush_writes_impl();
|
||||
|
||||
protected:
|
||||
explicit BlockBasedFS(FileDescription&);
|
||||
explicit BlockBasedFileSystem(FileDescription&);
|
||||
|
||||
KResult read_block(BlockIndex, UserOrKernelBuffer*, size_t count, size_t offset = 0, bool allow_cache = true) const;
|
||||
KResult read_blocks(BlockIndex, unsigned count, UserOrKernelBuffer&, bool allow_cache = true) const;
|
||||
@@ -48,8 +48,8 @@ private:
|
||||
}
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<Kernel::BlockBasedFS::BlockIndex> : AK::Formatter<FormatString> {
|
||||
void format(FormatBuilder& builder, Kernel::BlockBasedFS::BlockIndex value)
|
||||
struct AK::Formatter<Kernel::BlockBasedFileSystem::BlockIndex> : AK::Formatter<FormatString> {
|
||||
void format(FormatBuilder& builder, Kernel::BlockBasedFileSystem::BlockIndex value)
|
||||
{
|
||||
return AK::Formatter<FormatString>::format(builder, "{}", value.value());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user