5 ms·
You mean around truncation and rewrite?
by zAy0LfpBZLC8mAC 10y ago
You mean around truncation and rewrite?
- gpderetta 10y agoIt is not necessarily about truncation. IIRC the problem was that rename doesn't (didn't?) act as a full barrier on ext4 and the metadata write that updates the name from the old file to the new file can be committed to disk before the updates to the new file. This means that after a crash the new name might point to a corrupted file. The barrier behavior wasn't explicitly mandated by POSIX, but it is an intuitive release consistency-like model which was implicitly expected by most programmers. edit: spurious words and parens.