O_SYNC是每次write系统调用后都等待实际的物理I/O完成。而fsync也是会等待物理I/O完成后才返回。apue上是这样写的,但我没有明白:Compare fsync and fdatasync,which update a file's contents when we say so,with the O_SYNC flag,which updates a file's contents every time we write to the file. 我不明白这里的"fsync which update a file's contents when we say so"到底是什么意思。O_SYNC和fsync之间有什么样的区别和联系?这样的问题我没有办法去写程序实践。 小弟想请教大家,非常感谢!
O_SYNC是每次write系统调用后都等待实际的物理I/O完成。而fsyn