fflush:是把C库中的缓冲调用write函数写到磁盘[其实是写到内核的缓冲区]。fsync:是把内核缓冲刷到磁盘上。 转载文章:http://blog.chinaunix.net/uid-1911213-id-3412851.html