summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Plan9FileSystem.h
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-05 01:00:18 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-05 10:26:29 +0200
commite8c9b5e8701527402af659da5db4eb483fcc2de8 (patch)
treee0adb3aeb24746b9631aea58794c04b9147cb7bc /Kernel/FileSystem/Plan9FileSystem.h
parent7490ea944946f5a9405c20f86fc22bb9014ba07e (diff)
downloadserenity-e8c9b5e8701527402af659da5db4eb483fcc2de8.zip
Kernel: Make Inode::directory_entry_count errors observable.
Certain implementations of Inode::directory_entry_count were calling functions which returned errors, but had no way of surfacing them. Switch the return type to KResultOr<size_t> and start observing these error paths.
Diffstat (limited to 'Kernel/FileSystem/Plan9FileSystem.h')
-rw-r--r--Kernel/FileSystem/Plan9FileSystem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/Plan9FileSystem.h b/Kernel/FileSystem/Plan9FileSystem.h
index cf40c17a40..9e922ca7fa 100644
--- a/Kernel/FileSystem/Plan9FileSystem.h
+++ b/Kernel/FileSystem/Plan9FileSystem.h
@@ -131,7 +131,7 @@ public:
virtual KResultOr<NonnullRefPtr<Inode>> create_child(const String& name, mode_t, dev_t, uid_t, gid_t) override;
virtual KResult add_child(Inode&, const StringView& name, mode_t) override;
virtual KResult remove_child(const StringView& name) override;
- virtual size_t directory_entry_count() const override;
+ virtual KResultOr<size_t> directory_entry_count() const override;
virtual KResult chmod(mode_t) override;
virtual KResult chown(uid_t, gid_t) override;
virtual KResult truncate(u64) override;