summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorAkilesh Kailash <akailash@google.com>2020-11-06 18:09:35 +0000
committerAkilesh Kailash <akailash@google.com>2020-11-10 02:12:07 +0000
commit1baac8fce15a4903aa5a5f4e48a3246d7f7cb599 (patch)
tree870bef24a0beb2bae598a40f3dc4608c390cb3c5 /trusty/coverage/coverage.cpp
parentd8b2a2afa221214f5cf2f33a31048de0dde052ed (diff)
libsnapshot:snapuserd: Read the cow_operation in reverse order
This is required for merge IO path. During merge process, kernel scans the metadata page from backwards when merge is initiated. Since, merge ordering should follow our internal COW format, read the COW operations from backwards and populate the metadata. Additionally, Kernel can merge successive operations if the two chunk IDs are contiguous. This can be problematic when there is a crash during merge; specifically when the merge operation has dependency. These dependencies can only happen during copy operations of the overlapping regions. To avoid this problem, we make sure that copy operations are merged individually. Test: cow_snapuserd_test Bug: 168311203 Signed-off-by: Akilesh Kailash <akailash@google.com> Change-Id: Ic9c52b323ce58af897cfa343bf9277c8f1f022e3
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions