summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd_test.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2021-01-19 20:55:26 -0800
committerDavid Anderson <dvander@google.com>2021-01-20 18:17:08 -0800
commit91c9f56d30a164fafc07db62b2016e8a40c77bcb (patch)
tree9a5420fed52f4b675cf5e6f0e92956125ad1ca64 /debuggerd/debuggerd_test.cpp
parentdc73581e53a683f2f58c83722287da8fc021d520 (diff)
libsnapshot: Pass the correct source device to snapuserd.
When a partition shrinks, it is not correct to use the base device as the "source" device for the new COW format, because we may need to read blocks that do not exist in the new partition. To resolve this, we store a copy of the old partition layout in /metadata, and use it to create a "source" view of the old partition. The new stacking looks as follows: partition_b (dm-snapshot): - partition_b-base (partition_b dm-linear) - partition_b-cow-user (dm-user + snapuserd): - partition_b-cow (COW image) - partition_b-src (partition_a dm-linear) Bug: 177935716 Test: vts_libsnapshot_test Change-Id: I872f271cc1f25cc796b94188fdde247cdc4050b4
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
0 files changed, 0 insertions, 0 deletions