summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryCacheTest.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-11-09 15:58:09 -0800
committerDavid Anderson <dvander@google.com>2018-11-09 16:03:40 -0800
commit140d053c021dc70cdec909b8962b849d06bdf0fa (patch)
tree7c47e6e56327a9c0c191ec9d4392784b7176b9a0 /libunwindstack/tests/MemoryCacheTest.cpp
parent3d086369344eb63e876f7fcac23dfcfab258264a (diff)
liblp: Add a helper method for upgrading metadata on retrofit devices.
This adds a new MetadataBuilder constructor, NewForUpdate, that can be used by update_engine to simplify upgrading metadata. It is safe to call whether or not the device is a retrofit. If the metadata has block devices assigned to a specific slot, and that slot matches the slot suffix, it will ensure that an equivalent entry exists for the alternate slot. Thus, if the source slot is _a and the target slot is _b, and the metadata has "system_a" as a block device but not "system_b", this will automatically add "system_b" as a block device. Bug: 116802789 Test: liblp_test gtest Change-Id: Ie89d4dbf4c708b5705e658220227ebf33fcb1930
Diffstat (limited to 'libunwindstack/tests/MemoryCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions