write cache and write sequence order

Posted by excanoe on Stack Overflow See other posts from Stack Overflow or by excanoe
Published on 2010-12-24T12:48:44Z Indexed on 2010/12/24 13:54 UTC
Read the original article Hit count: 202

Filed under:
|
|

ok, here i have some weird question:

let say we have some binary file (.log), and sequence of write operations, for example log1, log2, log3 and each has some block size n (raw data).

question: can I be sure that log1,log2 and log3 sequences can be written in the correct order in ONE file, even if i have few cache levels (disk hardware and os level)?

update very interested in what will be with records order (not with records) if we have software or hardware failure (reboot or another reason).

update there can be some percent of write failures, but main question is: will write order stay correct?

© Stack Overflow or respective owner

Related posts about io

Related posts about disk