commit | 2d4d60cccb705f0ce86da6075aa3606857fa9737 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Fri Jun 28 00:18:23 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Jun 28 00:18:23 2024 +0000 |
tree | 28b9f0a7cdf8e51c82592ba159940417cbf6ec20 | |
parent | 59a11e37aae6808a40aedc29479e36fd24ed9560 [diff] | |
parent | a7b4a9d4f94113f9bde6f287ed6de1c38b2c2986 [diff] |
Merge "Call sync() to guarantee blocks were released by unlink" into main
diff --git a/fs_mgr/libfiemap/fiemap_writer.cpp b/fs_mgr/libfiemap/fiemap_writer.cpp index 06e210e..d61e007 100644 --- a/fs_mgr/libfiemap/fiemap_writer.cpp +++ b/fs_mgr/libfiemap/fiemap_writer.cpp
@@ -60,6 +60,7 @@ static inline void cleanup(const std::string& file_path, bool created) { if (created) { unlink(file_path.c_str()); + sync(); } }