140d053c02
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 |
||
---|---|---|
.. | ||
include | ||
include_fstab/fstab | ||
libdm | ||
liblp | ||
tests | ||
tools | ||
.clang-format | ||
Android.bp | ||
OWNERS | ||
fs_mgr.cpp | ||
fs_mgr_avb.cpp | ||
fs_mgr_avb_ops.cpp | ||
fs_mgr_boot_config.cpp | ||
fs_mgr_dm_linear.cpp | ||
fs_mgr_format.cpp | ||
fs_mgr_fstab.cpp | ||
fs_mgr_overlayfs.cpp | ||
fs_mgr_priv.h | ||
fs_mgr_priv_avb_ops.h | ||
fs_mgr_priv_boot_config.h | ||
fs_mgr_priv_sha.h | ||
fs_mgr_slotselect.cpp | ||
fs_mgr_vendor_overlay.cpp | ||
fs_mgr_verity.cpp |