commit | 7e05c044326d7d4ebc281a1810e3443ab23557d3 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Wed Oct 12 10:08:03 2022 -0700 |
committer | Kelvin Zhang <zhangkelvin@google.com> | Thu Oct 13 09:43:44 2022 -0700 |
tree | f16b12095ab6f9eec2ff4b2263134be76275cfbf | |
parent | cf10e2097d7198de750d739729f5f2d052b866bb [diff] |
Fix bug in WriteStringToFileAtomic According to https://www.slideshare.net/nan1nan1/eat-my-data , rename() without an fsync() is not safe, and cannot guarantee data integrity in case of powerloss of OS failure. Test: partner verification, th Bug: 238702018 Change-Id: I5809770062ed7bfa47df81de418a2d8f7cbc6620