commit | a526a1e78c5b02096f596097ece4611a6fcc9e27 | [log] [tgz] |
---|---|---|
author | Kenny Guy <kennyguy@google.com> | Wed Jan 21 16:52:01 2015 +0000 |
committer | Kenny Guy <kennyguy@google.com> | Wed Jan 21 16:52:01 2015 +0000 |
tree | c70090da239ef898af6207a2ba00f5e0f3b7dd59 | |
parent | 1480108d05f37b7ae50dab68eb9e3c1eca3519f6 [diff] |
Flush and sync before calling JournaledFile.commit JournaledFile.commit on ext4 isn't atomic you need to flush / sync before closing the file otherwise you might end up with an empty file. Bug: 19091744 Change-Id: Ia04784084053cc8ce338a13a61dc6d397610a006