android_system_core/fs_mgr
David Anderson 140d053c02 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
2018-11-09 16:03:40 -08:00
..
include fs_mgr: overlayfs earlier kernels do not need override_creds=off 2018-11-07 11:05:18 -08:00
include_fstab/fstab
libdm
liblp liblp: Add a helper method for upgrading metadata on retrofit devices. 2018-11-09 16:03:40 -08:00
tests adb: overlayfs failed to remount /system 2018-11-06 09:49:10 -08:00
tools
.clang-format
Android.bp Mount vendor overlay from the system partition 2018-11-01 10:26:12 +09:00
OWNERS
fs_mgr.cpp fs_mgr: Allow overriding the super partition name via the kernel commandline. 2018-11-02 14:51:16 -07:00
fs_mgr_avb.cpp
fs_mgr_avb_ops.cpp
fs_mgr_boot_config.cpp
fs_mgr_dm_linear.cpp init: Regenerate uevents for dependent super partition devices. 2018-11-05 17:53:49 -08:00
fs_mgr_format.cpp
fs_mgr_fstab.cpp fs_mgr: enable DT fstab based on its status node appropriately 2018-11-06 10:44:51 -08:00
fs_mgr_overlayfs.cpp fs_mgr: overlayfs earlier kernels do not need override_creds=off 2018-11-07 11:05:18 -08:00
fs_mgr_priv.h fs_mgr: Allow overriding the super partition name via the kernel commandline. 2018-11-02 14:51:16 -07:00
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: overlayfs earlier kernels do not need override_creds=off 2018-11-07 11:05:18 -08:00
fs_mgr_verity.cpp