Home
last modified time | relevance | path

Searched refs:start_block (Results 1 – 25 of 56) sorted by relevance

123

/system/update_engine/payload_generator/
Dextent_ranges.cc35 if (a.start_block() == b.start_block()) in ExtentsOverlapOrTouch()
37 if (a.start_block() == kSparseHole || b.start_block() == kSparseHole) in ExtentsOverlapOrTouch()
39 if (a.start_block() < b.start_block()) { in ExtentsOverlapOrTouch()
40 return a.start_block() + a.num_blocks() >= b.start_block(); in ExtentsOverlapOrTouch()
42 return b.start_block() + b.num_blocks() >= a.start_block(); in ExtentsOverlapOrTouch()
47 if (a.start_block() == b.start_block()) in ExtentsOverlap()
49 if (a.start_block() == kSparseHole || b.start_block() == kSparseHole) in ExtentsOverlap()
51 if (a.start_block() < b.start_block()) { in ExtentsOverlap()
52 return a.start_block() + a.num_blocks() > b.start_block(); in ExtentsOverlap()
54 return b.start_block() + b.num_blocks() > a.start_block(); in ExtentsOverlap()
[all …]
Ddeflate_utils.cc69 file.extents[0].start_block() * kBlockSize, in IsSquashfsImage()
109 return (bit_extent.offset / 8) >= (extent.start_block() * kBlockSize) && in IsBitExtentInExtent()
111 ((extent.start_block() + extent.num_blocks()) * kBlockSize); in IsBitExtentInExtent()
140 auto gap_blocks = base_extents[0].start_block(); in ShiftExtentsOverExtents()
141 auto last_end_block = base_extents[0].start_block(); in ShiftExtentsOverExtents()
144 gap_blocks += base_ext.start_block() - last_end_block; in ShiftExtentsOverExtents()
145 last_end_block = base_ext.start_block() + base_ext.num_blocks(); in ShiftExtentsOverExtents()
146 base_ext.set_start_block(base_ext.start_block() - gap_blocks); in ShiftExtentsOverExtents()
147 if (over_ext->start_block() >= base_ext.start_block() && in ShiftExtentsOverExtents()
148 over_ext->start_block() < in ShiftExtentsOverExtents()
[all …]
Dextent_utils.cc42 uint64_t next_block = extent.start_block() == kSparseHole in AppendBlockToExtents()
44 : extent.start_block() + extent.num_blocks(); in AppendBlockToExtents()
94 static_cast<uint64_t>(e.start_block()), in ExtentsToString()
107 if (last_ext.start_block() + last_ext.num_blocks() == in NormalizeExtents()
108 curr_ext.start_block()) { in NormalizeExtents()
134 uint64_t new_start = extent.start_block(); in ExtentsSublist()
155 return a.start_block() == b.start_block() && a.num_blocks() == b.num_blocks(); in operator ==()
159 out << "[" << extent.start_block() << " - " in operator <<()
160 << extent.start_block() + extent.num_blocks() - 1 << "]"; in operator <<()
Dmerge_sequence_generator.cc45 return op1.dst_extent().start_block() < op2.dst_extent().start_block(); in operator <()
63 if (src_extent.start_block() == dst_extent.start_block()) { in SplitSelfOverlapping()
69 GetDifference(src_extent.start_block(), dst_extent.start_block()); in SplitSelfOverlapping()
73 ExtentForRange(i + src_extent.start_block(), num_blocks), in SplitSelfOverlapping()
74 ExtentForRange(i + dst_extent.start_block(), num_blocks))); in SplitSelfOverlapping()
101 ExtentForRange(aop.op.dst_extents(0).start_block() + used_blocks, in Create()
144 it.dst_extent().start_block() + it.dst_extent().num_blocks() - 1; in FindDependency()
145 return dst_end_block < op.src_extent().start_block(); in FindDependency()
154 op.src_extent().start_block() + op.src_extent().num_blocks() - 1; in FindDependency()
155 return src_end_block < it.dst_extent().start_block(); in FindDependency()
Dextent_utils.h43 if (extent.start_block() == kSparseHole) { in ExpandExtents()
46 for (uint64_t block = extent.start_block(); in ExpandExtents()
47 block < (extent.start_block() + extent.num_blocks()); in ExpandExtents()
117 return src_extents_[cur_extent_].start_block() + block_offset_;
Dboot_img_filesystem_unittest.cc83 EXPECT_EQ(1u, files[0].extents[0].start_block()); in TEST_F()
89 EXPECT_EQ(2u, files[1].extents[0].start_block()); in TEST_F()
108 EXPECT_EQ(1u, files[0].extents[0].start_block()); in TEST_F()
114 EXPECT_EQ(2u, files[1].extents[0].start_block()); in TEST_F()
146 EXPECT_EQ(1u, files[0].extents[0].start_block()); in TEST_F()
152 EXPECT_EQ(3u, files[1].extents[0].start_block()); in TEST_F()
Dextent_ranges.h39 return x.start_block() < y.start_block(); in operator()
43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks);
Dfake_filesystem.cc45 EXPECT_LE(0U, extent.start_block()); in AddFile()
46 EXPECT_LE(extent.start_block() + extent.num_blocks(), block_count_); in AddFile()
Dsquashfs_filesystem_unittest.cc56 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange()
57 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
95 return a.extents[0].start_block() < in CheckSquashfs()
96 b.extents[0].start_block(); in CheckSquashfs()
102 return a.extents[0].start_block() + a.extents[0].num_blocks() > in CheckSquashfs()
103 b.extents[0].start_block(); in CheckSquashfs()
Dsquashfs_filesystem.cc193 return a.extents[0].start_block() < b.extents[0].start_block(); in Init()
202 auto first_begin = first->extents[0].start_block(); in Init()
204 auto second_begin = second->extents[0].start_block(); in Init()
247 return a.extents[0].start_block() < b.extents[0].start_block(); in Init()
Dcow_size_estimator.cc47 extent.start_block() * block_size, in PerformReplaceOp()
52 extent.start_block(), buffer.data(), buffer.size())); in PerformReplaceOp()
62 writer->AddZeroBlocks(extent.start_block(), extent.num_blocks())); in PerformZeroOp()
Dextent_utils_unittest.cc46 EXPECT_EQ(kSparseHole, extents[0].start_block()); in TEST()
48 EXPECT_EQ(0U, extents[1].start_block()); in TEST()
50 EXPECT_EQ(kSparseHole, extents[2].start_block()); in TEST()
Dfull_update_generator.cc159 size_t start_block = i * chunk_blocks; in GenerateOperations() local
170 dst_extent->set_start_block(start_block); in GenerateOperations()
176 static_cast<off_t>(start_block) * config.block_size, in GenerateOperations()
Dab_generator_unittest.cc46 uint64_t start_block, in ExtentEquals() argument
48 return ext.start_block() == start_block && ext.num_blocks() == num_blocks; in ExtentEquals()
346 EXPECT_EQ(2U, first_op.src_extents(0).start_block()); in TEST_F()
350 EXPECT_EQ(10U, first_op.dst_extents(0).start_block()); in TEST_F()
358 EXPECT_EQ(4U, second_op.src_extents(0).start_block()); in TEST_F()
360 EXPECT_EQ(6U, second_op.src_extents(1).start_block()); in TEST_F()
362 EXPECT_EQ(8U, second_op.src_extents(2).start_block()); in TEST_F()
366 EXPECT_EQ(14U, second_op.dst_extents(0).start_block()); in TEST_F()
374 EXPECT_EQ(9U, third_op.src_extents(0).start_block()); in TEST_F()
378 EXPECT_EQ(18U, third_op.dst_extents(0).start_block()); in TEST_F()
Dpayload_generation_config_android.cc94 for (uint64_t offset = part.verity.hash_tree_data_extent.start_block() * in VerifyVerityConfig()
110 part.verity.hash_tree_extent.start_block() * block_size, in VerifyVerityConfig()
119 part.verity.fec_data_extent.start_block() * block_size, in VerifyVerityConfig()
121 part.verity.fec_extent.start_block() * block_size, in VerifyVerityConfig()
Dmapfile_filesystem_unittest.cc49 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange()
50 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
/system/update_engine/payload_consumer/
Dsnapshot_extent_writer.cc57 cur_extent.start_block(), data, cur_extent_size)) { in ConsumeWithBuffer()
58 LOG(ERROR) << "AddRawBlocks(" << cur_extent.start_block() << ", " << data in ConsumeWithBuffer()
84 cur_extent.start_block(), buffer_.data(), buffer_.size())) { in ConsumeWithBuffer()
85 LOG(ERROR) << "AddRawBlocks(" << cur_extent.start_block() << ", " in ConsumeWithBuffer()
Dextent_writer.cc47 if (cur_extent_->start_block() != kSparseHole) { in Write()
49 cur_extent_->start_block() * block_size_ + extent_bytes_written_; in Write()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp108 bool moved = s_it->start_block() + s_offset != d_it->start_block() + d_offset; in OptimizeSourceCopyOperation()
111 AppendExtent(optimized->mutable_src_extents(), s_it->start_block() + s_offset, step); in OptimizeSourceCopyOperation()
112 AppendExtent(optimized->mutable_dst_extents(), d_it->start_block() + d_offset, step); in OptimizeSourceCopyOperation()
136 const auto block_boundary = de.start_block() + de.num_blocks(); in WriteExtent()
137 for (auto b = de.start_block(); b < block_boundary; ++b) { in WriteExtent()
Dutility.cpp171 void AppendExtent(RepeatedPtrField<chromeos_update_engine::Extent>* extents, uint64_t start_block, in AppendExtent() argument
175 auto next_block = last_extent->start_block() + last_extent->num_blocks(); in AppendExtent()
176 if (start_block == next_block) { in AppendExtent()
182 new_extent->set_start_block(start_block); in AppendExtent()
/system/core/fs_mgr/libsnapshot/corpus/
Dlaunch_device.txt56 start_block: 0
69 start_block: 0
82 start_block: 0
/system/update_engine/common/
Dcow_operation_convert.cc54 auto src_block = src_extent.start_block() + i - 1; in ConvertToCowOperations()
55 auto dst_block = dst_extent.start_block() + i - 1; in ConvertToCowOperations()
/system/update_engine/scripts/update_payload/
Dapplier.py117 file_obj.seek(ex.start_block * block_size)
146 file_obj.seek(ex.start_block * block_size)
182 start_byte = ex.start_block * block_size
260 start_block = ex.start_block
267 if (start_block + num_blocks) * block_size > part_size:
283 self.payload.payload_file.seek(start_block * block_size)
284 part_file.seek(start_block * block_size)
311 part_file.seek(ex.start_block * block_size)
Dcommon.py163 end_block = ex.start_block + ex.num_blocks
165 return '%d->%d * %d' % (ex.start_block, end_block, block_size)
166 return '%d->%d' % (ex.start_block, end_block)
/system/update_engine/scripts/
Dpayload_info.py143 '(%s,%s)' % (ext.start_block, ext.num_blocks) for ext in extents)
182 if last_ext and (curr_ext.start_block !=
183 last_ext.start_block + last_ext.num_blocks):

123