summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryFileTest.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-11-06 19:06:41 -0800
committerDavid Anderson <dvander@google.com>2018-11-08 09:51:03 -0800
commit76cde4173ab752ff7e3f0ccd7fcf08187ad016bb (patch)
tree1d2c6000d041c684671eb9728eb72d29bb632ddf /libunwindstack/tests/MemoryFileTest.cpp
parent71c29a9ce0df115860f2167ec2f2fa1dbbaa4202 (diff)
liblp: Allow automatic slot suffixing of partition names.
On retrofit devices, an OTA package or super_empty.img won't know which slot it applies to. This is not an issue on devices shipping with dynamic partitions, since they ship on the "a" slot. To work around this, partitions and block devices can be flagged as "auto-slot-suffixed". This indicates that ReadMetadata should automatically append a slot suffix before returning the metadata. This flag is added by MetadataBuilder when requested, and will be enabled via lpmake separately. After ReadMetadata has applied slot suffixes, it takes care to remove the slot-suffix flag. This prevents the suffix from being applied twice, if for example the metadata is then imported into a MetadataBuilder. Bug: 116802789 Test: liblp_test gtest retrofit device boots Change-Id: Ic7de06d31253a8d5b8d15c0d936175ca2939f857
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions