Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123 Change-Id: I1605f33ede34c8289a6eede94b62c8695df81b63 Merged-In: I24f07ba89ba6e6dac8adc2a6bb654d75d2b73d3e
This commit is contained in:
commit
69a1fd86d3
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;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue