diff options
| author | David Anderson <dvander@google.com> | 2019-08-26 21:09:52 -0700 |
|---|---|---|
| committer | David Anderson <dvander@google.com> | 2019-08-27 13:43:18 -0700 |
| commit | a6e288a17831e08e7cc9ba4834ca534e5da3f1d5 (patch) | |
| tree | f32fb2764c9921c9f4e2f8a7956c66f310e318ec /libutils/ProcessCallStack_fuzz.cpp | |
| parent | c058df7b12e190ff521c97d1801713b830bdcb6d (diff) | |
Clean up update state when snapshots are interrupted or cancelled.
This patch addresses two edge cases with interrupted updates:
(1) If the device reverts to the old slot *before* merging, snapshots
must be removed.
(2) If during a merge, a snapshot is detected to be invalid (due to
flashing), the snapshot must be removed.
To encapsulate this logic, WaitForMerge has been renamed to
ProcessUpdateState. It is still intended to be called after /data is
mounted, or after a merge is initiated.
Bug: 139154795
Test: libsnapshot_test gtest
Change-Id: I37a25ca722f30ae9548894dcfbd70cb64330e416
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions
