diff options
author | Yifan Hong <elsk@google.com> | 2020-02-18 15:04:28 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2020-03-05 08:41:42 -0800 |
commit | 83fe0a3572bd4f9385a34e2e6b02de5fbbf2eeab (patch) | |
tree | d6aa0be418eac13469148488495cc4a43da878ed /trusty/coverage/coverage_test.cpp | |
parent | 91ffe19c4e3c6b36d98fdcad44e0dd7666c9dea9 (diff) |
libsnapshot: Add prolog to RemoveAllUpdateStates.
Add an optional prolog arg (function<bool()>) that is invoked
before snapshots are deleted and update state set to none.
This allows update_engine to delete markers before deleting snapshots
to avoid depending on the erroneous markers. Otherwise, if update_engine
delete markers after libsnapshot deletes update states, the device could
technically get into a state where update_engine thinks the update has
been applied, but snapshots are gone.
Bug: 147696014
Test: libsnapshot_test
Change-Id: I71bfc04a81ea4f94b3072558be50d2f80565113e
Merged-In: I71bfc04a81ea4f94b3072558be50d2f80565113e
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions