mufs: sync writes
This commit is contained in:
parent
58c93eecf4
commit
070c36a361
2 changed files with 11 additions and 0 deletions
|
@ -32,6 +32,9 @@ int mufs_mark_block(struct mufs *fs, uint32_t block, int status)
|
|||
sizeof data) == 0)
|
||||
return -1;
|
||||
|
||||
if (flash_sync(fs->dev) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue