commit | 621d9b9732f929f25df5a7b4f2199bf762dd44dd | [log] [tgz] |
---|---|---|
author | Paul Crowley <paulcrowley@google.com> | Fri Dec 07 15:36:09 2018 -0800 |
committer | Paul Crowley <paulcrowley@google.com> | Mon Jan 07 04:30:08 2019 -0800 |
tree | 775deb171d9efe01e0983059f8df15090577001c | |
parent | 2374693556fdc6eab6e701f478f502441274e109 [diff] [blame] |
Fsync directories after creating files Bug: 120248692 Test: adb shell locksettings set-pin 1111 && \ adb shell "echo b > /proc/sysrq-trigger" Change-Id: I53d252942c21365983b4f8b6e0948b1864f195c1
diff --git a/Utils.h b/Utils.h index 7976302..0b35a7b 100644 --- a/Utils.h +++ b/Utils.h
@@ -131,6 +131,8 @@ status_t WaitForFile(const char* filename, std::chrono::nanoseconds timeout); +bool FsyncDirectory(const std::string& dirname); + } // namespace vold } // namespace android