diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-21 17:01:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-21 23:23:23 +0200 |
commit | 6f69d5204fecf151ca0c4a1c0ca904c13ae8d095 (patch) | |
tree | 6faa78b40930a8c71d1d6dd680bb2c3a4fd8a8a6 /Kernel/FileSystem/DevPtsFS.h | |
parent | 6337d742bbe1d0a97a7c5cf73d24ca1d1cc2adbf (diff) | |
download | serenity-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.h | 2 |
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; |