mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28: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
|
@ -219,7 +219,7 @@ RefPtr<Inode> TmpFSInode::lookup(StringView name)
|
|||
return fs().get_inode(it->value.entry.inode);
|
||||
}
|
||||
|
||||
size_t TmpFSInode::directory_entry_count() const
|
||||
KResultOr<size_t> TmpFSInode::directory_entry_count() const
|
||||
{
|
||||
LOCKER(m_lock, Lock::Mode::Shared);
|
||||
ASSERT(is_directory());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue