add fsync and fdatasync