platform_system_core/fs_mgr/libsnapshot
David Anderson 1145c01e8e libsnapshot: Improve how devices are collapsed after merging.
Currently, we replace snapshot-merge with a linear device wrapping the
base device. This is not efficient. This patch reads LpMetadata for the
underlying partition, and duplicates its table into the snapshot-merge
device. This removes a layer of stacking and also allows removing the
base device.

Note that snapshot_test is growing a bit unwiedly, because it's starting
to implement pieces of libsnapshot that will be filled in later for
update_engine. (MapUpdatePartitions is a good example of this.) When
those pieces land in libsnapshot, snapshot_test will be cleaned up to
remove much of this manual fiddling.

Bug: 139090440
Test: libsnapshot_test gtest
Change-Id: I3872dc51d9e5980803303806f42a5c7e74b0b78a
2019-08-27 15:09:56 -07:00
..
include/libsnapshot Clean up update state when snapshots are interrupted or cancelled. 2019-08-27 13:43:18 -07:00
Android.bp libsnapshot: Do not map snapshots for partitions that were reflashed. 2019-08-27 13:43:18 -07:00
OWNERS
snapshot.cpp libsnapshot: Improve how devices are collapsed after merging. 2019-08-27 15:09:56 -07:00
snapshot_test.cpp libsnapshot: Improve how devices are collapsed after merging. 2019-08-27 15:09:56 -07:00
test_helpers.cpp libsnapshot: Add helper for first-stage init mounting 2019-08-23 14:42:05 -07:00
test_helpers.h Clean up update state when snapshots are interrupted or cancelled. 2019-08-27 13:43:18 -07:00