diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-10 15:42:39 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-10 21:58:58 +0100 |
commit | 5ce753b74d669aa240cae310ed41984158205f21 (patch) | |
tree | fbe1297544534d9605d3f99d0066d8cf2451d04d /Kernel/FileSystem/VirtualFileSystem.h | |
parent | a15ed8743d03c6c683f19447be20ca7dac768485 (diff) | |
download | serenity-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.h | 2 |
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); |