Skip to content
Snippets Groups Projects
Commit 7bf10ed3 authored by Ronny Nilsson's avatar Ronny Nilsson
Browse files

Sync to disk after finished write.

parent beae51df
No related branches found
No related tags found
No related merge requests found
......@@ -400,6 +400,7 @@ static int ubi_write_volume(int volId, const char *srcPath)
}
}
if(res == 0) res = fdatasync(dstFd);
out:
if(srcFd != -1) close(srcFd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment