fflush:是把C库中的缓冲调用write函数写到磁盘[其实是写到内核的缓冲区]。fsync:是把内核缓冲刷到磁盘上。 https://blog.youkuaiyun.com/abcd1f2/article/details/53436244