Home
last modified time | relevance | path

Searched refs:num_sectors (Results 1 – 19 of 19) sorted by relevance

/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h53 explicit Extent(uint64_t num_sectors) : num_sectors_(num_sectors) {} in Extent() argument
63 uint64_t num_sectors() const { return num_sectors_; } in num_sectors() function
64 void set_num_sectors(uint64_t num_sectors) { num_sectors_ = num_sectors; } in set_num_sectors() argument
75 LinearExtent(uint64_t num_sectors, uint32_t device_index, uint64_t physical_sector) in LinearExtent() argument
76 : Extent(num_sectors), device_index_(device_index), physical_sector_(physical_sector) {} in LinearExtent()
101 explicit ZeroExtent(uint64_t num_sectors) : Extent(num_sectors) {} in ZeroExtent() argument
302 uint64_t num_sectors, uint64_t physical_sector);
Dmetadata_format.h283 uint64_t num_sectors; member
/system/core/fs_mgr/liblp/
Dbuilder_test.cpp74 EXPECT_EQ(extent->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F()
85 EXPECT_EQ(system->extents()[0]->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F()
94 EXPECT_EQ(system->extents()[0]->num_sectors(), 131072 / LP_SECTOR_SIZE); in TEST_F()
99 EXPECT_EQ(system->extents()[0]->num_sectors(), (1024 * 256) / LP_SECTOR_SIZE); in TEST_F()
107 EXPECT_EQ(extent->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F()
229 EXPECT_EQ(extent.num_sectors, 80); in TEST_F()
291 EXPECT_EQ(system1->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F()
293 EXPECT_EQ(system2->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F()
295 EXPECT_EQ(vendor1->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F()
297 EXPECT_EQ(system1->physical_sector() + system1->num_sectors(), vendor1->physical_sector()); in TEST_F()
[all …]
Dbuilder.cpp95 return other.GetExtentType() == ExtentType::kZero && num_sectors_ == other.num_sectors(); in operator ==()
102 size_ += extent->num_sectors() * LP_SECTOR_SIZE; in AddExtent()
112 prev_extent->num_sectors() + new_extent->num_sectors(), in AddExtent()
137 if (extent->num_sectors() > sectors_to_remove) { in ShrinkTo()
139 extent->set_num_sectors(extent->num_sectors() - sectors_to_remove); in ShrinkTo()
142 size_ -= (extent->num_sectors() * LP_SECTOR_SIZE); in ShrinkTo()
143 sectors_to_remove -= extent->num_sectors(); in ShrinkTo()
156 p.AddExtent(std::make_unique<ZeroExtent>(extent->num_sectors())); in GetBeginningExtents()
169 sectors += extent->num_sectors(); in BytesOnDisk()
350 auto copy = std::make_unique<LinearExtent>(extent.num_sectors, extent.target_source, in ImportExtents()
[all …]
Dimages.cpp351 uint64_t extent_last_sector = extent.num_sectors; in AddPartitionImage()
374 extent_last_sector += extent.num_sectors; in AddPartitionImage()
412 sectors += metadata_.extents[partition.first_extent_index + i].num_sectors; in ComputePartitionSize()
436 if ((extent.num_sectors * LP_SECTOR_SIZE) % block_size_ != 0) { in CheckExtentOrdering()
Dutility.cpp157 total_size += extent.num_sectors * LP_SECTOR_SIZE; in GetPartitionSize()
Dio_test.cpp198 EXPECT_EQ(exported->extents[0].num_sectors, imported->extents[0].num_sectors); in TEST_F()
Dwriter.cpp163 physical_sector + extent.num_sectors > last_sector) { in ValidateAndSerializeMetadata()
/system/core/fs_mgr/tools/
Ddmctl.cpp78 uint64_t start_sector, num_sectors; in Next() local
83 if (!android::base::ParseUint(NextArg(), &num_sectors) || !num_sectors) { in Next()
89 return std::make_unique<DmTargetZero>(start_sector, num_sectors); in Next()
102 return std::make_unique<DmTargetLinear>(start_sector, num_sectors, block_device, in Next()
112 return std::make_unique<DmTargetAndroidVerity>(start_sector, num_sectors, keyid, in Next()
120 return std::make_unique<DmTargetBow>(start_sector, num_sectors, block_device); in Next()
127 return std::make_unique<DmTargetSnapshotOrigin>(start_sector, num_sectors, in Next()
156 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
175 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
178 return std::make_unique<DmTargetUser>(start_sector, num_sectors); in Next()
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp144 uint64_t num_sectors = in FillPartitionExtents() local
146 if (!num_sectors || !sectors_needed) { in FillPartitionExtents()
154 if (!builder->AddLinearExtent(partition, block_device, num_sectors, physical_sector)) { in FillPartitionExtents()
159 sectors_needed -= num_sectors; in FillPartitionExtents()
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp101 target = std::make_unique<DmTargetZero>(sector, extent.num_sectors); in CreateDmTableInternal()
111 target = std::make_unique<DmTargetLinear>(sector, extent.num_sectors, dev_string, in CreateDmTableInternal()
122 sector += extent.num_sectors; in CreateDmTableInternal()
/system/core/fs_mgr/libdm/
Ddm_table.cpp50 uint64_t DmTable::num_sectors() const { in num_sectors() function in android::dm::DmTable
Ddm_test.cpp74 ASSERT_EQ(2u, table.num_sectors()); in TEST()
137 ASSERT_EQ(1u, table.num_sectors()); in TEST()
254 ASSERT_EQ(kBaseDeviceSize / kSectorSize, origin_table.num_sectors()); in SetupImpl()
266 ASSERT_EQ(kBaseDeviceSize / kSectorSize, snap_table.num_sectors()); in SetupImpl()
286 ASSERT_EQ(kBaseDeviceSize / kSectorSize, merge_table.num_sectors()); in MergeImpl()
Ddm_linear_fuzzer.cpp101 ASSERT_EQ(2u, table.num_sectors()); in LLVMFuzzerTestOneInput()
/system/core/fs_mgr/libdm/include/libdm/
Ddm_table.h64 uint64_t num_sectors() const;
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp58 if (intersection != nullptr && intersection->num_sectors() == e->num_sectors()) { in HasExtent()
/system/extras/partition_tools/
Dlpdump.cc328 cout << " " << first_sector << " .. " << (first_sector + extent.num_sectors - 1) in PrintMetadata()
330 first_sector += extent.num_sectors; in PrintMetadata()
356 cout << block_device << ": " << offset << " .. " << (offset + extent->num_sectors) in PrintMetadata()
357 << ": " << name << " (" << extent->num_sectors << " sectors)\n"; in PrintMetadata()
Dlpunpack.cc229 total_size += extent.num_sectors * LP_SECTOR_SIZE; in ExtractPartition()
266 uint64_t remaining_bytes = extent.num_sectors * LP_SECTOR_SIZE; in WriteExtent()
Dlpadd.cc333 std::min(file_size - (uint64_t)pos, extent.num_sectors * LP_SECTOR_SIZE); in WriteExtent()