mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02: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:
committed by
Andreas Kling
parent
7490ea9449
commit
e8c9b5e870
Notes:
sideshowbarker
2024-07-19 04:17:38 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/e8c9b5e8701 Pull-request: https://github.com/SerenityOS/serenity/pull/2999
@@ -71,7 +71,7 @@ private:
|
||||
virtual int set_mtime(time_t) override;
|
||||
virtual KResult increment_link_count() override;
|
||||
virtual KResult decrement_link_count() 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;
|
||||
|
||||
Reference in New Issue
Block a user