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.cpp383 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in MapWithLoopDeviceList() local
396 uint64_t segment_size = std::min(file_sectors, sectors_needed); in MapWithLoopDeviceList()
401 sectors_needed -= segment_size; in MapWithLoopDeviceList()
402 if (sectors_needed == 0) { in MapWithLoopDeviceList()
/system/core/fs_mgr/liblp/
Dbuilder.cpp708 uint64_t sectors_needed = space_needed / LP_SECTOR_SIZE; in GrowPartition() local
709 DCHECK(sectors_needed * LP_SECTOR_SIZE == space_needed); in GrowPartition()
717 CHECK(sectors_needed % sectors_per_block == 0); in GrowPartition()
732 if (auto extent = ExtendFinalExtent(partition, free_regions, sectors_needed)) { in GrowPartition()
733 sectors_needed -= extent->num_sectors(); in GrowPartition()
740 if (!sectors_needed) { in GrowPartition()
760 uint64_t sectors = std::min(sectors_needed, region.length()); in GrowPartition()
765 sectors_needed -= sectors; in GrowPartition()
767 if (sectors_needed) { in GrowPartition()
818 uint64_t sectors_needed) const { in ExtendFinalExtent()
[all …]
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h414 uint64_t sectors_needed) const;