platform_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 fs_mgr: Support checkpoints 2018-09-20 17:28:23 -07:00
libdm Add noexcept to move constructors and assignment operators. 2018-10-05 16:43:47 +00:00
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 Adding bow dm-target 2018-10-02 10:12:30 -07:00
.clang-format Fix-up coding style 2017-02-18 12:33:36 +08:00
Android.bp Mount vendor overlay from the system partition 2018-11-01 10:26:12 +09:00
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 libdm: Add DmTargetVerity and use it in fs_mgr_avb. 2018-06-25 17:56:12 -07:00
fs_mgr_avb_ops.cpp fs_mgr: Adding logs when failing to wait for a device file 2017-07-06 09:51:02 +08:00
fs_mgr_boot_config.cpp fs_mgr: reorder getting boot config 2018-06-12 00:16:14 +08:00
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 fastboot, fs_mgr: set fsverity feature bit 2018-04-06 10:18:21 -07:00
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: Update for new libavb API. 2017-05-15 12:04:18 -04:00
fs_mgr_priv_boot_config.h fs_mgr: fs_mgr_get_boot_config_from_kernel_cmdline deal with quote 2018-06-08 16:04:17 -07:00
fs_mgr_priv_sha.h fs_mgr_avb: refactors how vbmeta is loaded 2017-04-14 21:50:55 +08:00
fs_mgr_slotselect.cpp init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
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 fs_mgr/init: use unique_ptr + CLO_EXEC for setmntent()/fopen() 2018-10-03 13:19:04 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00