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:
parent
28cda85f1f
commit
abcf05801a
8 changed files with 26 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue