Files
Akilesh Kailash 16237a6cd3 sdm660-common: gpt-utils: fsync after block device writes
When markBoolSuccessful is invoked, we update
the partition table. These writes should be
synced before merge operation is resumed post OTA.
If not, any crash before these writes are landed to
backing storage will lead to incorrect switching of
slots.

BUG: 175711601
Test: Verify slot switching correctly after crash when merge in progress
(on redbull)

Change-Id: Icc4987e5e8fb1a4b55a0c8ca74c362c56dd9d0ed
Signed-off-by: Akilesh Kailash <akailash@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-08-01 11:16:55 -04:00
..