Snap for 5797917 from 6c5e453f9e to qt-c2f2-release

Change-Id: I92e29452f176731c03fc482e5394cc5fad17c9c9
gugelfrei
android-build-team Robot 5 years ago
commit c4fd7be670

@ -147,6 +147,10 @@ bool secdiscard_path(const std::string& path) {
if (!overwrite_with_zeros(fs_fd.get(), range[0], range[1])) return false;
}
}
// Should wait for overwrites completion. Otherwise after unlink(),
// filesystem can allocate these blocks and IO can be reordered, resulting
// in making zero blocks to filesystem blocks.
fsync(fs_fd.get());
return true;
}

Loading…
Cancel
Save