summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/VirtualFileSystem.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-10 15:42:39 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-10 21:58:58 +0100
commit5ce753b74d669aa240cae310ed41984158205f21 (patch)
treefbe1297544534d9605d3f99d0066d8cf2451d04d /Kernel/FileSystem/VirtualFileSystem.h
parenta15ed8743d03c6c683f19447be20ca7dac768485 (diff)
downloadserenity-5ce753b74d669aa240cae310ed41984158205f21.zip
Kernel: Make Inode::traverse_as_directory() callback return ErrorOr
This allows us to propagate errors from inside the callback with TRY().
Diffstat (limited to 'Kernel/FileSystem/VirtualFileSystem.h')
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.h b/Kernel/FileSystem/VirtualFileSystem.h
index bbf2d77ec0..a57721e7ad 100644
--- a/Kernel/FileSystem/VirtualFileSystem.h
+++ b/Kernel/FileSystem/VirtualFileSystem.h
@@ -85,7 +85,7 @@ private:
bool is_vfs_root(InodeIdentifier) const;
- ErrorOr<void> traverse_directory_inode(Inode&, Function<bool(FileSystem::DirectoryEntryView const&)>);
+ ErrorOr<void> traverse_directory_inode(Inode&, Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)>);
Mount* find_mount_for_host(InodeIdentifier);
Mount* find_mount_for_guest(InodeIdentifier);