4 ms·
If you need to guarantee that data is, in fact, written permanently, you use fnctl(F_FULLFSYNC). FWIW while fsync() on Linux does request that the drive flushe
by int_19h 2y ago
If you need to guarantee that data is, in fact, written permanently, you use fnctl(F_FULLFSYNC).
FWIW while fsync() on Linux does request that the drive flushes its hardware cache, it's up to the drive whether to actually honor this request, and many don't do so synchronously (but still report success). So unless you control the whole setup end-to-end - hardware and software both - you don't actually have the guarantees.
- apitman 2y agoThanks for the explanation