Use fsync() at the end of file allocation instead of O_DSYNC
Instead of opening storage file with O_DSYNC, make sure data are written to a disk only before we claim allocation has finished.
Showing
想要评论请 注册 或 登录
Instead of opening storage file with O_DSYNC, make sure data are written to a disk only before we claim allocation has finished.