diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-05 01:00:18 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-05 10:26:29 +0200 |
commit | e8c9b5e8701527402af659da5db4eb483fcc2de8 (patch) | |
tree | e0adb3aeb24746b9631aea58794c04b9147cb7bc /Kernel/FileSystem/DevPtsFS.h | |
parent | 7490ea944946f5a9405c20f86fc22bb9014ba07e (diff) | |
download | serenity-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/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 214f3d3866..202a0a6d7d 100644 --- a/Kernel/FileSystem/DevPtsFS.h +++ b/Kernel/FileSystem/DevPtsFS.h @@ -76,7 +76,7 @@ private: 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; |