mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:38:12 +00:00
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.
This commit is contained in:
parent
7490ea9449
commit
e8c9b5e870
12 changed files with 29 additions and 17 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue