Home
last modified time | relevance | path

Searched refs:dst_block (Results 1 – 7 of 7) sorted by relevance

/system/update_engine/common/
Dcow_operation_convert.cc62 auto dst_block = dst_extent.start_block() + i - 1; in ConvertToCowOperations() local
63 converted.push_back({CowOperation::CowCopy, src_block, dst_block, 1}); in ConvertToCowOperations()
78 const auto dst_block = *it2; in ConvertToCowOperations() local
79 if (!merge_extents.ContainsBlock(dst_block)) { in ConvertToCowOperations()
81 {CowOperation::CowReplace, src_block, dst_block, 1}); in ConvertToCowOperations()
Dcow_operation_convert.h34 uint64_t dst_block{};
58 return op1.op == op2.op && op1.dst_block + op1.block_count == op2.dst_block && in IsConsecutive()
Dcow_operation_convert_unittest.cc49 out << "{" << c.op << ", " << c.src_block << ", " << c.dst_block << ", " in operator <<()
76 ASSERT_TRUE(dst_extent_set.ContainsBlock(cow_op.dst_block + i)); in VerifyCowMergeOp()
79 ExtentForRange(cow_op.dst_block, cow_op.block_count)); in VerifyCowMergeOp()
81 ExtentForRange(cow_op.dst_block, cow_op.block_count)); in VerifyCowMergeOp()
290 ASSERT_EQ(cow_ops[0].dst_block, 0UL); in TEST_F()
295 ASSERT_EQ(cow_ops[1].dst_block, 10UL); in TEST_F()
/system/update_engine/payload_consumer/
Dvabc_partition_writer.cc291 const auto dst_block = *it2; in PerformSourceCopyOperation() local
294 if (src_block == dst_block) { in PerformSourceCopyOperation()
297 if (copy_blocks_.ContainsBlock(dst_block)) { in PerformSourceCopyOperation()
299 push_back(&converted, {CowOperation::CowCopy, src_block, dst_block, 1}); in PerformSourceCopyOperation()
303 {CowOperation::CowReplace, src_block, dst_block, 1}); in PerformSourceCopyOperation()
311 cow_op.dst_block, cow_op.src_block, cow_op.block_count); in PerformSourceCopyOperation()
317 TEST_AND_RETURN_FALSE(cow_writer_->AddCopy(cow_op.dst_block + i - 1, in PerformSourceCopyOperation()
335 cow_op.dst_block, buffer.data(), buffer.size())); in PerformSourceCopyOperation()
Ddelta_performer_unittest.cc1137 uint32_t dst_block, in GetSourceCopyOp() argument
/system/update_engine/payload_generator/
Ddelta_diff_utils.cc149 size_t dst_block, in ShouldCreateNewOp() argument
161 dst_extent.start_block() + dst_extent.num_blocks() != dst_block; in ShouldCreateNewOp()
166 size_t dst_block, in AppendXorBlock() argument
168 if (!ops->empty() && ExtentContains(ops->back().dst_extent(), dst_block)) { in AppendXorBlock()
172 CHECK_NE(dst_block, std::numeric_limits<uint64_t>::max()); in AppendXorBlock()
173 if (ShouldCreateNewOp(*ops, src_block, dst_block, src_offset)) { in AppendXorBlock()
177 op.mutable_dst_extent()->set_start_block(dst_block); in AppendXorBlock()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_test.cpp1225 uint64_t dst_block = 0; in ShiftAllSnapshotBlocks() local
1227 while (dst_block < max_blocks && dst_block < src_block) { in ShiftAllSnapshotBlocks()
1228 if (!writer->AddCopy(dst_block, src_block)) { in ShiftAllSnapshotBlocks()
1230 << src_block << ", " << dst_block; in ShiftAllSnapshotBlocks()
1232 dst_block++; in ShiftAllSnapshotBlocks()