commit | 0e3f47e4827a067b9b9795a3ae7297b51c9f0776 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Apr 25 14:28:54 2014 -0700 |
committer | Colin Cross <ccross@android.com> | Fri Apr 25 15:19:18 2014 -0700 |
tree | 83a1c9a76d708c900155729d92687ac78b59984f | |
parent | 9fdc8156ca8fb3449859bebf080a477fa3bcff5c [diff] |
append2simg: write to temporary file append2simg causes libsparse to write mmapped data from a file back to that same file. On btrfs, this sometimes causes a page of zeroes to be written instead of the file data. Work around the issue by writing the output to a temporary file and then renaming it over the original file. Change-Id: Ia194b6ba0ddb8548747b63292b523756f544706a