Home
last modified time | relevance | path

Searched refs:sectors_needed (Results 1 – 4 of 4) sorted by relevance

/system/core/fs_mgr/libfiemap/
Dmetadata.cpp133 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in FillPartitionExtents() local
145 std::min(static_cast<uint64_t>(extent.fe_length / LP_SECTOR_SIZE), sectors_needed); in FillPartitionExtents()
146 if (!num_sectors || !sectors_needed) { in FillPartitionExtents()
159 sectors_needed -= num_sectors; in FillPartitionExtents()
Dimage_manager.cpp397 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in MapWithLoopDeviceList() local
410 uint64_t segment_size = std::min(file_sectors, sectors_needed); in MapWithLoopDeviceList()
415 sectors_needed -= segment_size; in MapWithLoopDeviceList()
416 if (sectors_needed == 0) { in MapWithLoopDeviceList()
/system/core/fs_mgr/liblp/
Dbuilder.cpp703 uint64_t sectors_needed = space_needed / LP_SECTOR_SIZE; in GrowPartition() local
704 DCHECK(sectors_needed * LP_SECTOR_SIZE == space_needed); in GrowPartition()
712 CHECK(sectors_needed % sectors_per_block == 0); in GrowPartition()
727 if (auto extent = ExtendFinalExtent(partition, free_regions, sectors_needed)) { in GrowPartition()
728 sectors_needed -= extent->num_sectors(); in GrowPartition()
735 if (!sectors_needed) { in GrowPartition()
755 uint64_t sectors = std::min(sectors_needed, region.length()); in GrowPartition()
760 sectors_needed -= sectors; in GrowPartition()
762 if (sectors_needed) { in GrowPartition()
813 uint64_t sectors_needed) const { in ExtendFinalExtent()
[all …]
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h414 uint64_t sectors_needed) const;