summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/DevTmpFS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/FileSystem/DevTmpFS.cpp')
-rw-r--r--Kernel/FileSystem/DevTmpFS.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/FileSystem/DevTmpFS.cpp b/Kernel/FileSystem/DevTmpFS.cpp
index 2a12915312..2ce31042fb 100644
--- a/Kernel/FileSystem/DevTmpFS.cpp
+++ b/Kernel/FileSystem/DevTmpFS.cpp
@@ -60,7 +60,7 @@ ErrorOr<size_t> DevTmpFSInode::read_bytes(off_t, size_t, UserOrKernelBuffer&, Op
VERIFY_NOT_REACHED();
}
-ErrorOr<void> DevTmpFSInode::traverse_as_directory(Function<bool(FileSystem::DirectoryEntryView const&)>) const
+ErrorOr<void> DevTmpFSInode::traverse_as_directory(Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)>) const
{
VERIFY_NOT_REACHED();
}
@@ -210,14 +210,14 @@ DevTmpFSDirectoryInode::~DevTmpFSDirectoryInode()
{
}
-ErrorOr<void> DevTmpFSDirectoryInode::traverse_as_directory(Function<bool(FileSystem::DirectoryEntryView const&)> callback) const
+ErrorOr<void> DevTmpFSDirectoryInode::traverse_as_directory(Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)> callback) const
{
MutexLocker locker(m_inode_lock);
- callback({ ".", identifier(), 0 });
- callback({ "..", identifier(), 0 });
+ TRY(callback({ ".", identifier(), 0 }));
+ TRY(callback({ "..", identifier(), 0 }));
for (auto& node : m_nodes) {
InodeIdentifier identifier = { fsid(), node.index() };
- callback({ node.name(), identifier, 0 });
+ TRY(callback({ node.name(), identifier, 0 }));
}
return {};
}