mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:45:08 +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
|
@ -48,7 +48,11 @@ void Inode::sync()
|
|||
{
|
||||
if (is_metadata_dirty())
|
||||
(void)flush_metadata();
|
||||
fs().flush_writes();
|
||||
auto result = fs().flush_writes();
|
||||
if (result.is_error()) {
|
||||
// TODO: Figure out how to propagate error to a higher function.
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ErrorOr<NonnullRefPtr<Custody>> Inode::resolve_as_link(Credentials const& credentials, Custody& base, RefPtr<Custody>* out_parent, int options, int symlink_recursion_level) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue