summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/DevPtsFS.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-21 17:01:52 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-21 23:23:23 +0200
commit6f69d5204fecf151ca0c4a1c0ca904c13ae8d095 (patch)
tree6faa78b40930a8c71d1d6dd680bb2c3a4fd8a8a6 /Kernel/FileSystem/DevPtsFS.h
parent6337d742bbe1d0a97a7c5cf73d24ca1d1cc2adbf (diff)
downloadserenity-6f69d5204fecf151ca0c4a1c0ca904c13ae8d095.zip
Kernel: Make Inode::flush_metadata() return a KResult
Even if this goes nowhere yet, we have to start building an error propagation path somewhere.
Diffstat (limited to 'Kernel/FileSystem/DevPtsFS.h')
-rw-r--r--Kernel/FileSystem/DevPtsFS.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/DevPtsFS.h b/Kernel/FileSystem/DevPtsFS.h
index 11a336039b..e907a52177 100644
--- a/Kernel/FileSystem/DevPtsFS.h
+++ b/Kernel/FileSystem/DevPtsFS.h
@@ -51,7 +51,7 @@ private:
virtual InodeMetadata metadata() const override;
virtual KResult traverse_as_directory(Function<bool(FileSystem::DirectoryEntryView const&)>) const override;
virtual KResultOr<NonnullRefPtr<Inode>> lookup(StringView name) override;
- virtual void flush_metadata() override;
+ virtual KResult flush_metadata() override;
virtual KResultOr<size_t> write_bytes(off_t, size_t, const UserOrKernelBuffer& buffer, OpenFileDescription*) override;
virtual KResultOr<NonnullRefPtr<Inode>> create_child(StringView name, mode_t, dev_t, UserID, GroupID) override;
virtual KResult add_child(Inode&, const StringView& name, mode_t) override;