Searched refs:num_extents (Results 1 – 15 of 15) sorted by relevance
501 static bool CountFiemapExtents(int file_fd, const std::string& file_path, uint32_t* num_extents) { in CountFiemapExtents() argument513 if (num_extents) { in CountFiemapExtents()514 *num_extents = fiemap.fm_mapped_extents; in CountFiemapExtents()533 uint32_t num_extents, std::string_view file_path) { in FiemapToExtents() argument534 if (num_extents == 0) return false; in FiemapToExtents()536 const struct fiemap_extent* last_extent = &fiemap->fm_extents[num_extents - 1]; in FiemapToExtents()547 for (uint32_t i = 1; i < num_extents; i++) { in FiemapToExtents()580 uint32_t num_extents; in ReadFiemap() local581 if (!CountFiemapExtents(file_fd, file_path, &num_extents)) { in ReadFiemap()584 if (num_extents == 0) { in ReadFiemap()[all …]
96 for (size_t i = 0; i < params.partition->num_extents; i++) { in CreateDmTableInternal()160 if (!partition.num_extents) { in CreateLogicalPartitions()
266 uint32_t num_extents; member
217 for (uint32_t i = 0; i < partition->num_extents; i++) { in ExtractPartition()243 for (uint32_t i = 0; i < partition->num_extents; i++) { in ExtractPartition()
304 for (uint32_t i = 0; i < partition->num_extents; i++) { in WritePartition()
326 for (size_t i = 0; i < partition.num_extents; i++) { in PrintMetadata()
368 if (extent_index >= partition.first_extent_index + partition.num_extents) { in AddPartitionImage()411 for (size_t i = 0; i < partition.num_extents; i++) { in ComputePartitionSize()
300 if (partition.first_extent_index + partition.num_extents < partition.first_extent_index) { in ParseMetadata()304 if (partition.first_extent_index + partition.num_extents > header.extents.num_entries) { in ParseMetadata()
155 for (uint32_t i = 0; i < partition.num_extents; i++) { in GetPartitionSize()
194 EXPECT_EQ(exported->partitions[0].num_extents, imported->partitions[0].num_extents); in TEST_F()
151 if (partition.first_extent_index + partition.num_extents > metadata.extents.size()) { in ValidateAndSerializeMetadata()
347 for (size_t i = 0; i < source.num_extents; i++) { in ImportExtents()937 part.num_extents = static_cast<uint32_t>(partition->extents().size()); in Export()
364 for (size_t i = 0; i < partition.num_extents; i++) { in TEST_F()
140 *is_zero_length = (partition->num_extents == 0); in LogicalPartitionExists()
1614 if (!params.partition->num_extents) { in MapPartitionWithSnapshot()