1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:24:57 +00:00

Kernel: Allow Ext2FS::flush_writes() to return ErrorOr<void>

This commit is contained in:
Zak-K-Abdi 2023-08-01 07:48:43 +01:00 committed by Sam Atkins
parent 28cda85f1f
commit abcf05801a
8 changed files with 26 additions and 12 deletions

View file

@ -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()