summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.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
commitec7ff22dd8224e6dcb568dea51bc1a4a769f5202 (patch)
tree9a5420fed52f4b675cf5e6f0e92956125ad1ca64 /trusty/coverage/coverage.cpp
parente93fd46ec0b4d8ca437e717570e9e32739381cbb (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 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions