Merge Coral/Flame into AOSP master
Bug: 141248619 Change-Id: I487bba24e1c3cef357a408424665f0348162345d Merged-In: I7191bd73d8621831c5802e02817f459f1da32754
This commit is contained in:
commit
8a9454c35c
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue