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

My understanding is that the storage device cache is opaque, that is, drives tend to lie, saying the write is done when it is in cache, and depend on having enough internal power capacity to flush on power loss.


Consumer devices sometimes lie (enterprise products less so), but there is a distinction between O_DIRECT and actual fsync at the protocol layer (e.g., in NVMe, fsync maps into a Flush command).




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

Search: