Home
last modified time | relevance | path

Searched refs:merge_op (Results 1 – 8 of 8) sorted by relevance

/system/update_engine/payload_consumer/
Dxor_extent_writer.cc63 const CowMergeOperation* merge_op) { in WriteXorExtent() argument
64 const auto src_block = merge_op->src_extent().start_block() + in WriteXorExtent()
66 merge_op->dst_extent().start_block(); in WriteXorExtent()
68 (src_block + xor_ext.num_blocks()) * BlockSize() + merge_op->src_offset(); in WriteXorExtent()
76 << BlockSize() << ", " << xor_ext << ", " << merge_op in WriteXorExtent()
81 if (oob_bytes > merge_op->src_offset()) { in WriteXorExtent()
83 << oob_bytes << ", source offset: " << merge_op->src_offset(); in WriteXorExtent()
92 src_block * BlockSize() + merge_op->src_offset())); in WriteXorExtent()
104 bytes, size, xor_ext, src_block * BlockSize() + merge_op->src_offset())); in WriteXorExtent()
128 const auto merge_op = merge_op_opt.value(); in WriteExtent() local
[all …]
Dvabc_partition_writer.cc71 for (const auto& merge_op : merge_ops) { in ComputeXorMap() local
72 if (merge_op.type() == CowMergeOperation::COW_XOR) { in ComputeXorMap()
73 xor_map.AddExtent(merge_op.dst_extent(), &merge_op); in ComputeXorMap()
281 for (const auto& merge_op : merge_sequence) { in WriteMergeSequence() local
282 const auto& dst_extent = merge_op.dst_extent(); in WriteMergeSequence()
283 const auto& src_extent = merge_op.src_extent(); in WriteMergeSequence()
286 if (merge_op.type() == CowMergeOperation::COW_COPY && in WriteMergeSequence()
287 merge_op.src_extent() == merge_op.dst_extent()) { in WriteMergeSequence()
Dvabc_partition_writer_unittest.cc65 auto merge_op = partition->add_merge_operations(); in AddMergeOp() local
66 auto src = merge_op->mutable_src_extent(); in AddMergeOp()
69 auto dst = merge_op->mutable_dst_extent(); in AddMergeOp()
72 merge_op->set_type(type); in AddMergeOp()
73 return merge_op; in AddMergeOp()
Dxor_extent_writer.h62 const CowMergeOperation* merge_op);
/system/update_engine/common/
Dcow_operation_convert.cc50 for (const auto& merge_op : merge_operations) { in ConvertToCowOperations() local
51 if (merge_op.type() != CowMergeOperation::COW_COPY) { in ConvertToCowOperations()
54 merge_extents.AddExtent(merge_op.dst_extent()); in ConvertToCowOperations()
55 const auto& src_extent = merge_op.src_extent(); in ConvertToCowOperations()
56 const auto& dst_extent = merge_op.dst_extent(); in ConvertToCowOperations()
/system/update_engine/payload_generator/
Dcow_size_estimator.cc44 for (const auto& merge_op : merge_ops) { in ComputeXorMap() local
45 if (merge_op.type() == CowMergeOperation::COW_XOR) { in ComputeXorMap()
46 xor_map.AddExtent(merge_op.dst_extent(), &merge_op); in ComputeXorMap()
Dmerge_sequence_generator_unittest.cc221 for (const auto& merge_op : sequence) { in ValidateSplitSequence() local
222 src_extent_set.SubtractExtent(merge_op.src_extent()); in ValidateSplitSequence()
223 dst_extent_set.SubtractExtent(merge_op.dst_extent()); in ValidateSplitSequence()
224 src_block_count += merge_op.src_extent().num_blocks(); in ValidateSplitSequence()
225 dst_block_count += merge_op.dst_extent().num_blocks(); in ValidateSplitSequence()
226 std::cout << merge_op.src_extent() << " -> " << merge_op.dst_extent() in ValidateSplitSequence()
228 ASSERT_FALSE(ExtentRanges::ExtentsOverlap(merge_op.src_extent(), in ValidateSplitSequence()
229 merge_op.dst_extent())); in ValidateSplitSequence()
Dpayload_file.cc184 for (const auto& merge_op : part.cow_merge_sequence) { in WritePayload() local
185 *partition->add_merge_operations() = merge_op; in WritePayload()