/system/update_engine/payload_generator/ |
D | extent_ranges.cc | 80 void ExtentRanges::AddExtent(Extent extent) { in AddExtent() argument 81 if (extent.start_block() == kSparseHole || extent.num_blocks() == 0) in AddExtent() 90 if (ExtentsOverlapOrTouch(*it, extent)) { in AddExtent() 97 extent = UnionOverlappingExtents(extent, *it); in AddExtent() 101 extent_set_.insert(extent); in AddExtent() 103 blocks_ += extent.num_blocks(); in AddExtent() 124 void ExtentRanges::SubtractExtent(const Extent& extent) { in SubtractExtent() argument 125 if (extent.start_block() == kSparseHole || extent.num_blocks() == 0) in SubtractExtent() 135 if (!ExtentsOverlap(*it, extent)) in SubtractExtent() 145 ExtentSet subtraction = SubtractOverlappingExtents(*it, extent); in SubtractExtent() [all …]
|
D | extent_utils.cc | 41 Extent& extent = extents->back(); in AppendBlockToExtents() local 42 uint64_t next_block = extent.start_block() == kSparseHole in AppendBlockToExtents() 44 : extent.start_block() + extent.num_blocks(); in AppendBlockToExtents() 46 extent.set_num_blocks(extent.num_blocks() + 1); in AppendBlockToExtents() 75 for (const Extent& extent : extents) { in StoreExtents() local 77 *new_extent = extent; in StoreExtents() 127 for (const Extent& extent : extents) { in ExtentsSublist() local 131 if (scanned_blocks + extent.num_blocks() > block_offset) { in ExtentsSublist() 134 uint64_t new_start = extent.start_block(); in ExtentsSublist() 135 uint64_t new_num_blocks = extent.num_blocks(); in ExtentsSublist() [all …]
|
D | graph_utils_unittest.cc | 65 Extent& extent = graph[0].out_edges[1].extents[0]; in TEST() local 66 EXPECT_EQ(3U, extent.start_block()); in TEST() 67 EXPECT_EQ(1U, extent.num_blocks()); in TEST() 72 Extent& extent = graph[0].out_edges[1].extents[0]; in TEST() local 73 EXPECT_EQ(3U, extent.start_block()); in TEST() 74 EXPECT_EQ(2U, extent.num_blocks()); in TEST() 80 Extent& extent = graph[2].out_edges[1].extents[0]; in TEST() local 81 EXPECT_EQ(5U, extent.start_block()); in TEST() 82 EXPECT_EQ(2U, extent.num_blocks()); in TEST()
|
D | extent_utils.h | 40 for (const auto& extent : extents) { in ExpandExtents() local 41 if (extent.start_block() == kSparseHole) { in ExpandExtents() 42 ret.resize(ret.size() + extent.num_blocks(), kSparseHole); in ExpandExtents() 44 for (uint64_t block = extent.start_block(); in ExpandExtents() 45 block < (extent.start_block() + extent.num_blocks()); in ExpandExtents()
|
D | fake_filesystem.cc | 44 for (const Extent& extent : extents) { in AddFile() local 45 EXPECT_LE(0U, extent.start_block()); in AddFile() 46 EXPECT_LE(extent.start_block() + extent.num_blocks(), block_count_); in AddFile()
|
D | deflate_utils.cc | 99 bool IsBitExtentInExtent(const Extent& extent, const BitExtent& bit_extent) { in IsBitExtentInExtent() argument 100 return (bit_extent.offset / 8) >= (extent.start_block() * kBlockSize) && in IsBitExtentInExtent() 102 ((extent.start_block() + extent.num_blocks()) * kBlockSize); in IsBitExtentInExtent() 116 ByteExtent ExpandToByteExtent(const BitExtent& extent) { in ExpandToByteExtent() argument 117 uint64_t offset = extent.offset / 8; in ExpandToByteExtent() 118 uint64_t length = ((extent.offset + extent.length + 7) / 8) - offset; in ExpandToByteExtent() 211 for (const auto& extent : extents) { in FindDeflates() local 212 if (IsBitExtentInExtent(extent, deflate)) { in FindDeflates() 226 for (const auto& extent : extents) { in CompactDeflates() local 227 size_t gap_bytes = extent.start_block() * kBlockSize - bytes_passed; in CompactDeflates() [all …]
|
D | graph_utils.cc | 69 const Extent& extent = *it; in AddReadBeforeDepExtents() local 70 for (uint64_t block = extent.start_block(), in AddReadBeforeDepExtents() 71 block_end = extent.start_block() + extent.num_blocks(); in AddReadBeforeDepExtents() 107 for (const auto& extent : field) { in DumpExtents() local 108 LOG(INFO) << header << "(" << extent.start_block() << ", " in DumpExtents() 109 << extent.num_blocks() << ")"; in DumpExtents()
|
D | annotated_operation.cc | 33 for (const auto& extent : extents) { in OutputExtents() local 34 *os << " (" << extent.start_block() << ", " << extent.num_blocks() << ")"; in OutputExtents()
|
D | mapfile_filesystem_unittest.cc | 48 for (const Extent& extent : extents) { in ExpectBlocksInRange() local 49 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange() 50 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
|
D | ext2_filesystem_unittest.cc | 54 for (const Extent& extent : extents) { in ExpectBlocksInRange() local 55 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange() 56 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
|
D | extent_ranges.h | 55 void AddExtent(Extent extent); 56 void SubtractExtent(const Extent& extent);
|
D | inplace_generator.cc | 298 for (const auto& extent : extents) { in TempBlocksExistInExtents() local 299 uint64_t start = extent.start_block(); in TempBlocksExistInExtents() 300 uint64_t num = extent.num_blocks(); in TempBlocksExistInExtents() 367 for (const Extent& extent : cuts[i].tmp_extents) { in AssignBlockForAdjoiningCuts() local 368 cut_blocks_needed += extent.num_blocks(); in AssignBlockForAdjoiningCuts() 648 Extent* extent = vertex->aop.op.add_dst_extents(); in CreateScratchNode() local 649 extent->set_start_block(start_block); in CreateScratchNode() 650 extent->set_num_blocks(num_blocks); in CreateScratchNode() 669 for (const Extent& extent : extents) { in AddInstallOpToBlocksVector() local 670 for (uint64_t block = extent.start_block(); in AddInstallOpToBlocksVector() [all …]
|
D | squashfs_filesystem_unittest.cc | 55 for (const Extent& extent : extents) { in ExpectBlocksInRange() local 56 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange() 57 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
|
/system/core/fs_mgr/liblp/ |
D | builder.cpp | 56 void Partition::AddExtent(std::unique_ptr<Extent>&& extent) { in AddExtent() argument 57 size_ += extent->num_sectors() * LP_SECTOR_SIZE; in AddExtent() 59 if (LinearExtent* new_extent = extent->AsLinearExtent()) { in AddExtent() 66 extent = std::make_unique<LinearExtent>( in AddExtent() 73 extents_.push_back(std::move(extent)); in AddExtent() 91 Extent* extent = extents_.back().get(); in ShrinkTo() local 92 if (extent->num_sectors() > sectors_to_remove) { in ShrinkTo() 94 extent->set_num_sectors(extent->num_sectors() - sectors_to_remove); in ShrinkTo() 97 size_ -= (extent->num_sectors() * LP_SECTOR_SIZE); in ShrinkTo() 98 sectors_to_remove -= extent->num_sectors(); in ShrinkTo() [all …]
|
D | images.cpp | 284 const LpMetadataExtent& extent = metadata_.extents[extent_index]; in AddPartitionImage() local 285 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in AddPartitionImage() 317 uint64_t extent_last_sector = extent.num_sectors; in AddPartitionImage() 322 if (!SectorToBlock(extent.target_data, &output_block)) { in AddPartitionImage() 325 sparse_file* output_device = device_images_[extent.target_source].get(); in AddPartitionImage() 339 const LpMetadataExtent& extent = metadata_.extents[extent_index]; in AddPartitionImage() local 340 extent_last_sector += extent.num_sectors; in AddPartitionImage() 341 output_device = device_images_[extent.target_source].get(); in AddPartitionImage() 342 if (!SectorToBlock(extent.target_data, &output_block)) { in AddPartitionImage() 393 for (const auto& extent : metadata_.extents) { in CheckExtentOrdering() local [all …]
|
D | reader.cpp | 277 LpMetadataExtent extent; in ParseMetadata() local 278 memcpy(&extent, cursor, sizeof(extent)); in ParseMetadata() 281 if (extent.target_type == LP_TARGET_TYPE_LINEAR && in ParseMetadata() 282 extent.target_source >= header.block_devices.num_entries) { in ParseMetadata() 287 metadata->extents.push_back(extent); in ParseMetadata()
|
D | builder_test.cpp | 71 LinearExtent* extent = system->extents()[0]->AsLinearExtent(); in TEST_F() local 72 ASSERT_NE(extent, nullptr); in TEST_F() 73 EXPECT_EQ(extent->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F() 78 EXPECT_EQ(extent->physical_sector(), 32); in TEST_F() 104 extent = system->extents()[0]->AsLinearExtent(); in TEST_F() 105 ASSERT_NE(extent, nullptr); in TEST_F() 106 EXPECT_EQ(extent->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F() 107 EXPECT_EQ(extent->physical_sector(), 32); in TEST_F() 219 for (const auto& extent : exported->extents) { in TEST_F() local 220 ASSERT_EQ(extent.target_type, LP_TARGET_TYPE_LINEAR); in TEST_F() [all …]
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 49 bool ExtractExtent(const LpMetadataExtent& extent, int output_fd); 64 bool WriteExtent(const LpMetadataExtent& extent); 219 const LpMetadataExtent& extent = metadata_->extents[index]; in ExtractPartition() local 221 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in ExtractPartition() 222 std::cerr << "Unsupported target type in extent: " << extent.target_type << "\n"; in ExtractPartition() 225 if (extent.target_source != 0) { in ExtractPartition() 229 total_size += extent.num_sectors * LP_SECTOR_SIZE; in ExtractPartition() 245 const LpMetadataExtent& extent = metadata_->extents[index]; in ExtractPartition() local 247 if (!writer.WriteExtent(extent)) { in ExtractPartition() 257 bool SparseWriter::WriteExtent(const LpMetadataExtent& extent) { in WriteExtent() argument [all …]
|
D | lpdump.cc | 343 const LpMetadataExtent& extent = pt->extents[partition.first_extent_index + i]; in LpdumpMain() local 344 cout << " " << first_sector << " .. " << (first_sector + extent.num_sectors - 1) in LpdumpMain() 346 first_sector += extent.num_sectors; in LpdumpMain() 347 if (extent.target_type == LP_TARGET_TYPE_LINEAR) { in LpdumpMain() 348 const auto& block_device = pt->block_devices[extent.target_source]; in LpdumpMain() 350 cout << "linear " << device_name.c_str() << " " << extent.target_data; in LpdumpMain() 351 } else if (extent.target_type == LP_TARGET_TYPE_ZERO) { in LpdumpMain()
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 79 const auto& extent = metadata.extents[partition.first_extent_index + i]; in CreateDmTable() local 81 switch (extent.target_type) { in CreateDmTable() 83 target = std::make_unique<DmTargetZero>(sector, extent.num_sectors); in CreateDmTable() 86 const auto& block_device = metadata.block_devices[extent.target_source]; in CreateDmTable() 92 target = std::make_unique<DmTargetLinear>(sector, extent.num_sectors, path, in CreateDmTable() 93 extent.target_data); in CreateDmTable() 97 LOG(ERROR) << "Unknown target type in metadata: " << extent.target_type; in CreateDmTable() 103 sector += extent.num_sectors; in CreateDmTable()
|
/system/extras/ext4_utils/ |
D | mke2fs.conf | 15 features = has_journal,extent,huge_file,dir_nlink,extra_isize,uninit_bg 19 features = has_journal,extent,huge_file,flex_bg,inline_data,64bit,dir_nlink,extra_isize
|
/system/update_engine/payload_consumer/ |
D | extent_reader_unittest.cc | 66 for (const auto& extent : extents) { in ReadExtents() local 69 &sample_[extent.start_block() * kBlockSize], in ReadExtents() 70 &sample_[(extent.start_block() + extent.num_blocks()) * kBlockSize]); in ReadExtents()
|
D | extent_reader.cc | 43 for (const auto& extent : extents_) { in Init() local 44 total_size_ += extent.num_blocks() * block_size_; in Init()
|
D | delta_performer.cc | 885 Extent extent = partition.hash_tree_data_extent(); in ParseManifestPartitions() local 886 install_part.hash_tree_data_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 887 install_part.hash_tree_data_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 888 extent = partition.hash_tree_extent(); in ParseManifestPartitions() 889 install_part.hash_tree_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 890 install_part.hash_tree_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 905 Extent extent = partition.fec_data_extent(); in ParseManifestPartitions() local 906 install_part.fec_data_offset = extent.start_block() * block_size_; in ParseManifestPartitions() 907 install_part.fec_data_size = extent.num_blocks() * block_size_; in ParseManifestPartitions() 908 extent = partition.fec_extent(); in ParseManifestPartitions() [all …]
|
/system/update_engine/common/ |
D | test_utils.cc | 60 void PrintTo(const Extent& extent, ::std::ostream* os) { in PrintTo() argument 61 *os << "(" << extent.start_block() << ", " << extent.num_blocks() << ")"; in PrintTo()
|