Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No. sync() is the system-wide fsync() so it makes no difference. The issue is that sync() tells the filesystem to flush its caches to storage, the FS tells storage to get everything in permanent storage and the storage device lies its pants off and says everything is stored as soon as it's hit the controller or the write cache.

It's not like the layers above can just go "nuh-uh, tell me when it's actually really written for real", if the storage device is going to lie it's going to lie every time.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: