summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.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
commitd08195691bba99132fffbcc6beab6d9ea832ca75 (patch)
tree870bef24a0beb2bae598a40f3dc4608c390cb3c5 /trusty/coverage/coverage_test.cpp
parentd021544d046474c171ff82196afa5e425a58000d (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_test.cpp')
0 files changed, 0 insertions, 0 deletions