summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryFileTest.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-08-22 14:55:03 -0700
committerDavid Anderson <dvander@google.com>2019-08-23 14:44:52 -0700
commitcd7a635dc7efeb3368886e7521e641ec7cdc0129 (patch)
tree4a741995aaf9cb5a3759446f75034f3e264de156 /libunwindstack/tests/MemoryFileTest.cpp
parent9966699af7974438597d767f67b3f7b8dd335014 (diff)
liblp: Add an attribute to indicate that a partition has been updated.
When the bootloader (or fastbootd) flashes the super partition, we need to make sure that init doesn't re-map any snapshot or snapshot-merge targets. A simple way to do this is to introduce an attribute that is only added by update_engine. When this flag is present, we know the partition has not been flashed. This bumps the minor version of LpMetadata. To make this as uninvasive as possible, the new minor version is only used when MetadataBuilder detects the new attribute. The new liblp can read older metadata, but will reject it if it contains an illegal attribute set. Bug: 139154795 Test: liblp_test gtest Change-Id: I5ae15d11219b41575a9f71d7dbdb43cbf07a3529
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions