mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 08:33:28 +02:00
Kernel: Allow Ext2FS::flush_writes() to return ErrorOr<void>
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 20:33:50 +09:00
Author: https://github.com/Zak-K-Abdi 🔰 Commit: https://github.com/SerenityOS/serenity/commit/abcf05801a Pull-request: https://github.com/SerenityOS/serenity/pull/20297 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -259,8 +259,12 @@ void VirtualFileSystem::sync_filesystems()
|
||||
file_systems.append(fs);
|
||||
});
|
||||
|
||||
for (auto& fs : file_systems)
|
||||
fs->flush_writes();
|
||||
for (auto& fs : file_systems) {
|
||||
auto result = fs->flush_writes();
|
||||
if (result.is_error()) {
|
||||
//TODO: Figure out how to propagate error to a higher function.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void VirtualFileSystem::lock_all_filesystems()
|
||||
|
||||
Reference in New Issue
Block a user