Home
last modified time | relevance | path

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

12

/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 ==()
Dextent_utils.h41 if (extent.start_block() == kSparseHole) { in ExpandExtents()
44 for (uint64_t block = extent.start_block(); in ExpandExtents()
45 block < (extent.start_block() + extent.num_blocks()); in ExpandExtents()
Dextent_ranges.h39 return x.start_block() < y.start_block(); in operator()
43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks);
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()
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.cc198 return a.extents[0].start_block() < b.extents[0].start_block(); in Init()
207 auto first_begin = first->extents[0].start_block(); in Init()
209 auto second_begin = second->extents[0].start_block(); in Init()
252 return a.extents[0].start_block() < b.extents[0].start_block(); in Init()
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()
350 EXPECT_EQ(2U, first_op.src_extents(0).start_block()); in TEST_F()
354 EXPECT_EQ(10U, first_op.dst_extents(0).start_block()); in TEST_F()
362 EXPECT_EQ(4U, second_op.src_extents(0).start_block()); in TEST_F()
364 EXPECT_EQ(6U, second_op.src_extents(1).start_block()); in TEST_F()
366 EXPECT_EQ(8U, second_op.src_extents(2).start_block()); in TEST_F()
370 EXPECT_EQ(14U, second_op.dst_extents(0).start_block()); in TEST_F()
378 EXPECT_EQ(9U, third_op.src_extents(0).start_block()); in TEST_F()
382 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()
Dab_generator.cc137 first_ext.set_start_block(curr_src_ext.start_block()); in SplitSourceCopy()
141 curr_src_ext.set_start_block(curr_src_ext.start_block() + blocks_left); in SplitSourceCopy()
217 last_aop.op.dst_extents(last_dst_idx).start_block() + in MergeOperations()
219 uint32_t curr_start_block = curr_aop.op.dst_extents(0).start_block(); in MergeOperations()
Dannotated_operation.cc34 *os << " (" << extent.start_block() << ", " << extent.num_blocks() << ")"; in OutputExtents()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp103 bool moved = s_it->start_block() + s_offset != d_it->start_block() + d_offset; in OptimizeSourceCopyOperation()
106 AppendExtent(optimized->mutable_src_extents(), s_it->start_block() + s_offset, step); in OptimizeSourceCopyOperation()
107 AppendExtent(optimized->mutable_dst_extents(), d_it->start_block() + d_offset, step); in OptimizeSourceCopyOperation()
131 const auto block_boundary = de.start_block() + de.num_blocks(); in WriteExtent()
132 for (auto b = de.start_block(); b < block_boundary; ++b) { in WriteExtent()
Dutility.cpp170 void AppendExtent(RepeatedPtrField<chromeos_update_engine::Extent>* extents, uint64_t start_block, in AppendExtent() argument
174 auto next_block = last_extent->start_block() + last_extent->num_blocks(); in AppendExtent()
175 if (start_block == next_block) { in AppendExtent()
181 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/payload_consumer/
Dextent_writer.cc47 if (cur_extent_->start_block() != kSparseHole) { in Write()
49 cur_extent_->start_block() * block_size_ + extent_bytes_written_; in Write()
Dpartition_update_generator_android_unittest.cc89 ASSERT_EQ(0u, operation.src_extents(0).start_block()); in CheckPartitionUpdate()
93 ASSERT_EQ(0u, operation.dst_extents(0).start_block()); in CheckPartitionUpdate()
/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.py138 '(%s,%s)' % (ext.start_block, ext.num_blocks) for ext in extents)
177 if last_ext and (curr_ext.start_block !=
178 last_ext.start_block + last_ext.num_blocks):
Dpayload_info_unittest.py74 def __init__(self, start_block, num_blocks): argument
75 self.start_block = start_block

12