Home
last modified time | relevance | path

Searched refs:dst_extent (Results 1 – 16 of 16) sorted by relevance

/system/update_engine/payload_generator/
Dmerge_sequence_generator.cc29 const Extent& dst_extent, in CreateCowMergeOperation() argument
35 *ret.mutable_dst_extent() = dst_extent; in CreateCowMergeOperation()
44 << ", dst extent: " << ExtentsToString({merge_operation.dst_extent()}); in operator <<()
62 return op1.dst_extent().start_block() < op2.dst_extent().start_block(); in operator <()
67 op1.dst_extent() == op2.dst_extent(); in operator ==()
91 const Extent& dst_extent, in SplitSelfOverlapping() argument
93 CHECK_EQ(src_extent.num_blocks(), dst_extent.num_blocks()); in SplitSelfOverlapping()
94 if (src_extent.start_block() == dst_extent.start_block()) { in SplitSelfOverlapping()
96 src_extent, dst_extent, CowMergeOperation::COW_COPY)); in SplitSelfOverlapping()
101 GetDifference(src_extent.start_block(), dst_extent.start_block()); in SplitSelfOverlapping()
[all …]
Dmerge_sequence_generator_unittest.cc34 const Extent& dst_extent) { in CreateCowMergeOperation() argument
36 src_extent, dst_extent, CowMergeOperation::COW_COPY); in CreateCowMergeOperation()
209 void ValidateSplitSequence(const Extent& src_extent, const Extent& dst_extent) { in ValidateSplitSequence() argument
211 SplitSelfOverlapping(src_extent, dst_extent, &sequence); in ValidateSplitSequence()
215 dst_extent_set.AddExtent(dst_extent); in ValidateSplitSequence()
219 std::cout << "src_extent: " << src_extent << " dst_extent: " << dst_extent in ValidateSplitSequence()
223 dst_extent_set.SubtractExtent(merge_op.dst_extent()); 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()
229 merge_op.dst_extent())); in ValidateSplitSequence()
[all …]
Dfull_update_generator.cc169 Extent* dst_extent = aop->op.add_dst_extents(); in GenerateOperations() local
170 dst_extent->set_start_block(start_block); in GenerateOperations()
171 dst_extent->set_num_blocks(num_blocks); in GenerateOperations()
Dmerge_sequence_generator.h32 const Extent& dst_extent,
95 const Extent& dst_extent,
Ddelta_diff_utils_unittest.cc757 ASSERT_EQ(aop.xor_ops[0].dst_extent().num_blocks(), 1UL); in TEST_F()
758 ASSERT_EQ(aop.xor_ops[0].dst_extent().start_block(), 500UL); in TEST_F()
789 ASSERT_EQ(aop.xor_ops[0].dst_extent().num_blocks(), 1UL); in TEST_F()
790 ASSERT_EQ(aop.xor_ops[0].dst_extent().start_block(), 501UL); in TEST_F()
823 LOG(INFO) << op.src_extent() << ", " << op.dst_extent(); in TEST_F()
828 ASSERT_EQ(aop.xor_ops[0].dst_extent().num_blocks(), 1UL); in TEST_F()
829 ASSERT_EQ(aop.xor_ops[0].dst_extent().start_block(), 501UL); in TEST_F()
834 ASSERT_EQ(aop.xor_ops[1].dst_extent().num_blocks(), 2UL); in TEST_F()
835 ASSERT_EQ(aop.xor_ops[1].dst_extent().start_block(), 600UL); in TEST_F()
840 ASSERT_EQ(aop.xor_ops[2].dst_extent().num_blocks(), 2UL); in TEST_F()
[all …]
Ddelta_diff_utils.cc159 const auto& dst_extent = op.dst_extent(); in ShouldCreateNewOp() local
161 dst_extent.start_block() + dst_extent.num_blocks() != dst_block; in ShouldCreateNewOp()
168 if (!ops->empty() && ExtentContains(ops->back().dst_extent(), dst_block)) { in AppendXorBlock()
184 auto& dst_extent = *op.mutable_dst_extent(); in AppendXorBlock() local
186 dst_extent.set_num_blocks(dst_extent.num_blocks() + 1); in AppendXorBlock()
1022 CHECK_EQ(op.src_extent().num_blocks(), op.dst_extent().num_blocks()); in PopulateXorOps()
1028 op.mutable_src_extent()->set_num_blocks(op.dst_extent().num_blocks() + 1); in PopulateXorOps()
Dcow_size_estimator.cc46 xor_map.AddExtent(merge_op.dst_extent(), &merge_op); in ComputeXorMap()
75 copy_blocks.AddExtent(cow_op.dst_extent()); in CowDryRun()
/system/update_engine/payload_consumer/
Dvabc_partition_writer.cc73 xor_map.AddExtent(merge_op.dst_extent(), &merge_op); in ComputeXorMap()
94 copy_blocks_.AddExtent(cow_op.dst_extent()); in VABCPartitionWriter()
183 if (cow_op.dst_extent() == cow_op.src_extent()) { in WriteAllCopyOps()
189 cow_writer_->AddCopy(cow_op.dst_extent().start_block(), in WriteAllCopyOps()
198 cow_writer_->AddCopy(cow_op.dst_extent().start_block() + i - 1, in WriteAllCopyOps()
282 const auto& dst_extent = merge_op.dst_extent(); in WriteMergeSequence() local
287 merge_op.src_extent() == merge_op.dst_extent()) { in WriteMergeSequence()
292 ExtentRanges::ExtentsOverlap(src_extent, dst_extent); in WriteMergeSequence()
307 if (dst_extent.start_block() <= src_extent.start_block()) { in WriteMergeSequence()
308 for (size_t i = 0; i < dst_extent.num_blocks(); i++) { in WriteMergeSequence()
[all …]
Dxor_extent_writer_unittest.cc84 ASSERT_TRUE(xor_map_.AddExtent(op1.dst_extent(), &op1)); in TEST_F()
86 *op_.add_dst_extents() = op1.dst_extent(); in TEST_F()
90 ASSERT_TRUE(xor_map_.AddExtent(op2.dst_extent(), &op2)); in TEST_F()
96 ASSERT_TRUE(xor_map_.AddExtent(op3.dst_extent(), &op3)); in TEST_F()
143 ASSERT_TRUE(xor_map_.AddExtent(op3.dst_extent(), &op3)); in TEST_F()
184 ASSERT_TRUE(xor_map_.AddExtent(op3.dst_extent(), &op3)); in TEST_F()
231 ASSERT_TRUE(xor_map_.AddExtent(op3.dst_extent(), &op3)); in TEST_F()
Dxor_extent_writer.cc66 merge_op->dst_extent().start_block(); in WriteXorExtent()
137 if (!ExtentContains(merge_op->dst_extent(), xor_ext)) { in WriteExtent()
140 << xor_ext << " xor_map extent: " << merge_op->dst_extent(); in WriteExtent()
Dvabc_partition_writer_unittest.cc63 std::array<size_t, 2> dst_extent, in AddMergeOp() argument
70 dst->set_start_block(dst_extent[0]); in AddMergeOp()
71 dst->set_num_blocks(dst_extent[1]); in AddMergeOp()
Ddelta_performer.cc614 operation.dst_extent().num_blocks() * manifest_.block_size(); in ParseManifest()
/system/update_engine/common/
Dcow_operation_convert.cc54 merge_extents.AddExtent(merge_op.dst_extent()); in ConvertToCowOperations()
56 const auto& dst_extent = merge_op.dst_extent(); in ConvertToCowOperations() local
62 auto dst_block = dst_extent.start_block() + i - 1; in ConvertToCowOperations()
Dcow_operation_convert_unittest.cc110 std::array<int, 2> dst_extent) { in AddMergeOperation() argument
114 *op->mutable_dst_extent() = ExtentForRange(dst_extent[0], dst_extent[1]); in AddMergeOperation()
/system/update_engine/update_engine/
Dupdate_metadata.proto230 optional Extent dst_extent = 3; field
235 // first |src_offset| bytes of that extra block. For example, if |dst_extent|
237 // Note that |src_extent| contains 1 extra block than the |dst_extent|.
/system/update_engine/
Dupdate_metadata.proto230 optional Extent dst_extent = 3; field
235 // first |src_offset| bytes of that extra block. For example, if |dst_extent|
237 // Note that |src_extent| contains 1 extra block than the |dst_extent|.