mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
Kernel: Allow Ext2FS::flush_writes() to return ErrorOr<void>
This commit is contained in:
parent
28cda85f1f
commit
abcf05801a
Notes:
sideshowbarker
2024-07-17 20:33:50 +09:00
Author: https://github.com/Zak-K-Abdi 🔰
Commit: abcf05801a
Pull-request: https://github.com/SerenityOS/serenity/pull/20297
Reviewed-by: https://github.com/AtkinsSJ ✅
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