Are data recorded using write(or fwrite) stored on disk sequentially? In particular with regard to fault tolerance. If the system does not work during recording, it will behave as if the first bytes were written first and the recording stopped in the middle of the stream (unlike recorded random blocks).
In addition, consecutive calls to write/ fwrite? Are guaranteed . According to POSIX, I only find that the call is readguaranteed to review the previous one write.
I ask how I create a fault-tolerant data warehouse that is stored on disks. My logical order of writing is such that errors will not spoil the data, but if the logical order is not respected, I have a problem.
Note. I do not ask if retention is guaranteed. Only this, if my calls to write ultimately remain, they obey the order in which I really write.
source
share