mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 04:15:23 +03:00
Kernel: Make FileSystem::class_name() return a StringView
This commit is contained in:
parent
a2e734d202
commit
a803c4026c
Notes:
sideshowbarker
2024-07-18 08:51:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a803c4026cf
@ -23,7 +23,7 @@ public:
|
||||
static NonnullRefPtr<DevFS> create();
|
||||
|
||||
virtual bool initialize() override;
|
||||
virtual const char* class_name() const override { return "DevFS"; }
|
||||
virtual StringView class_name() const override { return "DevFS"sv; }
|
||||
|
||||
void notify_new_device(Device&);
|
||||
void notify_device_removal(Device&);
|
||||
|
@ -23,7 +23,7 @@ public:
|
||||
static NonnullRefPtr<DevPtsFS> create();
|
||||
|
||||
virtual bool initialize() override;
|
||||
virtual const char* class_name() const override { return "DevPtsFS"; }
|
||||
virtual StringView class_name() const override { return "DevPtsFS"sv; }
|
||||
|
||||
virtual NonnullRefPtr<Inode> root_inode() const override;
|
||||
|
||||
|
@ -148,11 +148,6 @@ bool Ext2FS::initialize()
|
||||
return true;
|
||||
}
|
||||
|
||||
const char* Ext2FS::class_name() const
|
||||
{
|
||||
return "Ext2FS";
|
||||
}
|
||||
|
||||
NonnullRefPtr<Inode> Ext2FS::root_inode() const
|
||||
{
|
||||
return *get_inode({ fsid(), EXT2_ROOT_INO });
|
||||
|
@ -128,7 +128,7 @@ private:
|
||||
|
||||
bool flush_super_block();
|
||||
|
||||
virtual const char* class_name() const override;
|
||||
virtual StringView class_name() const override { return "Ext2FS"sv; }
|
||||
virtual NonnullRefPtr<Inode> root_inode() const override;
|
||||
RefPtr<Inode> get_inode(InodeIdentifier) const;
|
||||
KResultOr<NonnullRefPtr<Inode>> create_inode(Ext2FSInode& parent_inode, const String& name, mode_t, dev_t, uid_t, gid_t);
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
static void lock_all();
|
||||
|
||||
virtual bool initialize() = 0;
|
||||
virtual const char* class_name() const = 0;
|
||||
virtual StringView class_name() const = 0;
|
||||
virtual NonnullRefPtr<Inode> root_inode() const = 0;
|
||||
virtual bool supports_watchers() const { return false; }
|
||||
|
||||
|
@ -113,7 +113,7 @@ private:
|
||||
};
|
||||
friend class Blocker;
|
||||
|
||||
virtual const char* class_name() const override { return "Plan9FS"; }
|
||||
virtual StringView class_name() const override { return "Plan9FS"sv; }
|
||||
|
||||
bool is_complete(const ReceiveCompletion&);
|
||||
KResult post_message(Message&, RefPtr<ReceiveCompletion>);
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
static RefPtr<ProcFS> create();
|
||||
|
||||
virtual bool initialize() override;
|
||||
virtual const char* class_name() const override { return "ProcFS"; }
|
||||
virtual StringView class_name() const override { return "ProcFS"sv; }
|
||||
|
||||
virtual NonnullRefPtr<Inode> root_inode() const override;
|
||||
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
static NonnullRefPtr<SysFS> create();
|
||||
|
||||
virtual bool initialize() override;
|
||||
virtual char const* class_name() const override { return "SysFS"; }
|
||||
virtual StringView class_name() const override { return "SysFS"sv; }
|
||||
|
||||
virtual NonnullRefPtr<Inode> root_inode() const override;
|
||||
|
||||
|
@ -24,7 +24,7 @@ public:
|
||||
static RefPtr<TmpFS> create();
|
||||
virtual bool initialize() override;
|
||||
|
||||
virtual const char* class_name() const override { return "TmpFS"; }
|
||||
virtual StringView class_name() const override { return "TmpFS"sv; }
|
||||
|
||||
virtual bool supports_watchers() const override { return true; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user