/system/update_engine/payload_generator/ |
D | merge_sequence_generator.cc | 29 CowMergeOperation CreateCowMergeOperation(const Extent& src_extent, in CreateCowMergeOperation() argument 35 *ret.mutable_src_extent() = src_extent; in CreateCowMergeOperation() 44 << ExtentsToString({merge_operation.src_extent()}) in operator <<() 67 return op1.type() == op2.type() && op1.src_extent() == op2.src_extent() && in operator ==() 91 void SplitSelfOverlapping(const Extent& src_extent, in SplitSelfOverlapping() argument 94 CHECK_EQ(src_extent.num_blocks(), dst_extent.num_blocks()); in SplitSelfOverlapping() 95 if (src_extent.start_block() == dst_extent.start_block()) { in SplitSelfOverlapping() 97 src_extent, dst_extent, CowMergeOperation::COW_COPY)); in SplitSelfOverlapping() 102 GetDifference(src_extent.start_block(), dst_extent.start_block()); in SplitSelfOverlapping() 103 for (size_t i = 0; i < src_extent.num_blocks(); i += diff) { in SplitSelfOverlapping() [all …]
|
D | merge_sequence_generator_unittest.cc | 30 CowMergeOperation CreateCowMergeOperation(const Extent& src_extent, in CreateCowMergeOperation() argument 33 src_extent, dst_extent, CowMergeOperation::COW_COPY); in CreateCowMergeOperation() 218 void ValidateSplitSequence(const Extent& src_extent, const Extent& dst_extent) { in ValidateSplitSequence() argument 220 SplitSelfOverlapping(src_extent, dst_extent, &sequence); in ValidateSplitSequence() 222 src_extent_set.AddExtent(src_extent); in ValidateSplitSequence() 228 std::cout << "src_extent: " << src_extent << " dst_extent: " << dst_extent in ValidateSplitSequence() 231 src_extent_set.SubtractExtent(merge_op.src_extent()); in ValidateSplitSequence() 233 src_block_count += merge_op.src_extent().num_blocks(); in ValidateSplitSequence() 235 std::cout << merge_op.src_extent() << " -> " << merge_op.dst_extent() in ValidateSplitSequence() 237 ASSERT_FALSE(ExtentRanges::ExtentsOverlap(merge_op.src_extent(), in ValidateSplitSequence() [all …]
|
D | cow_size_estimator.cc | 56 op.src_extent().start_block(), in CowDryRun() 73 op.src_extent().start_block() * block_size + op.src_offset(), in CowDryRun() 75 PLOG(ERROR) << "Failed to read source data at " << op.src_extent(); in CowDryRun() 98 op.src_extent().start_block(), in CowDryRun()
|
D | merge_sequence_generator.h | 33 CowMergeOperation CreateCowMergeOperation(const Extent& src_extent, 75 void SplitSelfOverlapping(const Extent& src_extent,
|
D | delta_diff_utils_unittest.cc | 751 ASSERT_EQ(aop.xor_ops[0].src_extent().num_blocks(), 1UL); in TEST_F() 752 ASSERT_EQ(aop.xor_ops[0].src_extent().start_block(), 51UL); in TEST_F() 783 ASSERT_EQ(aop.xor_ops[0].src_extent().num_blocks(), 1UL); in TEST_F() 784 ASSERT_EQ(aop.xor_ops[0].src_extent().start_block(), 51UL); in TEST_F() 821 LOG(INFO) << op.src_extent() << ", " << op.dst_extent(); in TEST_F() 823 ASSERT_EQ(aop.xor_ops[0].src_extent().num_blocks(), 2UL); in TEST_F() 824 ASSERT_EQ(aop.xor_ops[0].src_extent().start_block(), 50UL); in TEST_F() 829 ASSERT_EQ(aop.xor_ops[1].src_extent().num_blocks(), 3UL); in TEST_F() 830 ASSERT_EQ(aop.xor_ops[1].src_extent().start_block(), 51UL); in TEST_F() 835 ASSERT_EQ(aop.xor_ops[2].src_extent().num_blocks(), 3UL); in TEST_F() [all …]
|
D | delta_diff_utils.cc | 158 const auto& src_extent = op.src_extent(); in ShouldCreateNewOp() local 160 return src_extent.start_block() + src_extent.num_blocks() != src_block || in ShouldCreateNewOp() 183 auto& src_extent = *op.mutable_src_extent(); in AppendXorBlock() local 185 src_extent.set_num_blocks(src_extent.num_blocks() + 1); in AppendXorBlock() 1022 CHECK_EQ(op.src_extent().num_blocks(), op.dst_extent().num_blocks()); in PopulateXorOps()
|
/system/update_engine/payload_consumer/ |
D | vabc_partition_writer.cc | 113 if (cow_op.dst_extent() == cow_op.src_extent()) { in WriteAllCopyOps() 117 TEST_AND_RETURN_FALSE(cow_op.src_extent().num_blocks() != 0); in WriteAllCopyOps() 120 cow_op.src_extent().start_block(), in WriteAllCopyOps() 121 cow_op.src_extent().num_blocks())); in WriteAllCopyOps() 126 for (size_t i = cow_op.src_extent().num_blocks(); i > 0; i--) { in WriteAllCopyOps() 129 cow_op.src_extent().start_block() + i - 1)); in WriteAllCopyOps() 210 const auto& src_extent = merge_op.src_extent(); in WriteMergeSequence() local 214 merge_op.src_extent() == merge_op.dst_extent()) { in WriteMergeSequence() 219 ExtentRanges::ExtentsOverlap(src_extent, dst_extent); in WriteMergeSequence() 234 if (dst_extent.start_block() <= src_extent.start_block()) { in WriteMergeSequence()
|
D | vabc_partition_writer_unittest.cc | 62 std::array<size_t, 2> src_extent, in AddMergeOp() argument 67 src->set_start_block(src_extent[0]); in AddMergeOp() 68 src->set_num_blocks(src_extent[1]); in AddMergeOp()
|
D | xor_extent_writer.cc | 64 const auto src_block = merge_op->src_extent().start_block() + in WriteExtent()
|
D | xor_extent_writer_unittest.cc | 83 *op_.add_src_extents() = op1.src_extent(); in TEST_F()
|
/system/update_engine/common/ |
D | cow_operation_convert.cc | 55 const auto& src_extent = merge_op.src_extent(); in ConvertToCowOperations() local 60 for (uint64_t i = src_extent.num_blocks(); i > 0; i--) { in ConvertToCowOperations() 61 auto src_block = src_extent.start_block() + i - 1; in ConvertToCowOperations()
|
D | cow_operation_convert_unittest.cc | 109 std::array<int, 2> src_extent, in AddMergeOperation() argument 113 *op->mutable_src_extent() = ExtentForRange(src_extent[0], src_extent[1]); in AddMergeOperation()
|
/system/update_engine/update_engine/ |
D | update_metadata.proto | 229 optional Extent src_extent = 2; field 232 // [0, block_size), representing how much should the src_extent shift toward 233 // larger block number. If this field is non-zero, then src_extent will 236 // is [10, 15], |src_offset| is 500, then src_extent might look like [25, 31]. 237 // Note that |src_extent| contains 1 extra block than the |dst_extent|.
|
/system/update_engine/ |
D | update_metadata.proto | 229 optional Extent src_extent = 2; field 232 // [0, block_size), representing how much should the src_extent shift toward 233 // larger block number. If this field is non-zero, then src_extent will 236 // is [10, 15], |src_offset| is 500, then src_extent might look like [25, 31]. 237 // Note that |src_extent| contains 1 extra block than the |dst_extent|.
|
/system/core/fs_mgr/liblp/ |
D | builder.cpp | 1331 const auto& src_extent = *source_partition->extents()[i]; in VerifyExtentsAgainstSourceMetadata() local 1333 if (tgt_extent != src_extent) { in VerifyExtentsAgainstSourceMetadata() 1335 LERROR << "tgt extent " << tgt_extent << "; src extent " << src_extent; in VerifyExtentsAgainstSourceMetadata()
|