mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
Kernel: Allow Ext2FS::flush_writes() to return ErrorOr<void>
This commit is contained in:
@@ -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