vfs: properly sync metadata

This commit is contained in:
Matheus
2026-09-14 10:05:18 -03:00
parent f0dc54e027
commit 3eaca91ff1
5 changed files with 26 additions and 2 deletions
+7
View File
@@ -2178,8 +2178,15 @@ static int ext2_mount(vfs_t **vfs, vnode_t *mountpoint, vnode_t *backing, void *
return err;
}
static int ext2_syncfs(vfs_t *vfs) {
ext2fs_t *fs = (ext2fs_t *)vfs;
abc_sync(&fs->abc);
return error;
}
static vfsops_t vfsops = {
.mount = ext2_mount,
.sync = ext2_syncfs,
.root = ext2_root,
.statfs = ext2_statfs
};