Home
last modified time | relevance | path

Searched refs:num_sectors (Results 1 – 23 of 23) 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/tools/
Ddmctl.cpp82 uint64_t start_sector, num_sectors; in Next() local
87 if (!android::base::ParseUint(NextArg(), &num_sectors) || !num_sectors) { in Next()
93 return std::make_unique<DmTargetZero>(start_sector, num_sectors); in Next()
106 return std::make_unique<DmTargetLinear>(start_sector, num_sectors, block_device, in Next()
116 return std::make_unique<DmTargetAndroidVerity>(start_sector, num_sectors, keyid, in Next()
124 return std::make_unique<DmTargetBow>(start_sector, num_sectors, block_device); in Next()
131 return std::make_unique<DmTargetSnapshotOrigin>(start_sector, num_sectors, in Next()
160 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
179 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
187 return std::make_unique<DmTargetUser>(start_sector, num_sectors, control_device); in Next()
[all …]
/system/core/fs_mgr/liblp/
Dbuilder_test.cpp76 EXPECT_EQ(extent->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F()
87 EXPECT_EQ(system->extents()[0]->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F()
96 EXPECT_EQ(system->extents()[0]->num_sectors(), 131072 / LP_SECTOR_SIZE); in TEST_F()
101 EXPECT_EQ(system->extents()[0]->num_sectors(), (1024 * 256) / LP_SECTOR_SIZE); in TEST_F()
109 EXPECT_EQ(extent->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F()
231 EXPECT_EQ(extent.num_sectors, 80); in TEST_F()
293 EXPECT_EQ(system1->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F()
295 EXPECT_EQ(system2->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F()
297 EXPECT_EQ(vendor1->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F()
299 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.cpp356 uint64_t extent_last_sector = extent.num_sectors; in AddPartitionImage()
379 extent_last_sector += extent.num_sectors; in AddPartitionImage()
417 sectors += metadata_.extents[partition.first_extent_index + i].num_sectors; in ComputePartitionSize()
441 if ((extent.num_sectors * LP_SECTOR_SIZE) % block_size_ != 0) { in CheckExtentOrdering()
Dsuper_layout_builder.cpp185 size_t size = e.num_sectors * LP_SECTOR_SIZE; in GetImageLayout()
Dutility.cpp157 total_size += extent.num_sectors * LP_SECTOR_SIZE; in GetPartitionSize()
Dio_test.cpp202 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/libfiemap/
Dmetadata.cpp153 uint64_t num_sectors = in FillPartitionExtents() local
155 if (!num_sectors || !sectors_needed) { in FillPartitionExtents()
163 if (!builder->AddLinearExtent(partition, block_device, num_sectors, physical_sector)) { in FillPartitionExtents()
168 sectors_needed -= num_sectors; in FillPartitionExtents()
Dimage_manager.cpp762 linear_a->num_sectors() == linear_b->num_sectors() && in CompareExtent()
/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.cpp102 ASSERT_EQ(2u, table.num_sectors()); in TEST_F()
165 ASSERT_EQ(1u, table.num_sectors()); in TEST_F()
282 ASSERT_EQ(kBaseDeviceSize / kSectorSize, origin_table.num_sectors()); in SetupImpl()
294 ASSERT_EQ(kBaseDeviceSize / kSectorSize, snap_table.num_sectors()); in SetupImpl()
314 ASSERT_EQ(kBaseDeviceSize / kSectorSize, merge_table.num_sectors()); in MergeImpl()
/system/core/fs_mgr/libsnapshot/snapuserd/
Dsnapuserd_client.cpp243 uint64_t num_sectors = 0; in InitDmUserCow() local
244 if (!android::base::ParseUint(input[1], &num_sectors)) { in InitDmUserCow()
248 return num_sectors; in InitDmUserCow()
/system/core/fs_mgr/libdm/include/libdm/
Ddm_table.h65 uint64_t num_sectors() const;
/system/extras/partition_tools/
Dlpdump.cc335 cout << " " << first_sector << " .. " << (first_sector + extent.num_sectors - 1) in PrintMetadata()
337 first_sector += extent.num_sectors; in PrintMetadata()
363 cout << block_device << ": " << offset << " .. " << (offset + extent->num_sectors) in PrintMetadata()
364 << ": " << name << " (" << extent->num_sectors << " sectors)\n"; in PrintMetadata()
Dlpunpack.cc253 total_size += extent.num_sectors * LP_SECTOR_SIZE; in ExtractPartition()
290 uint64_t remaining_bytes = extent.num_sectors * LP_SECTOR_SIZE; in WriteExtent()
Dlpadd.cc346 std::min(file_size - (uint64_t)pos, extent.num_sectors * LP_SECTOR_SIZE); in WriteExtent()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp63 if (intersection != nullptr && intersection->num_sectors() == e->num_sectors()) { in HasExtent()
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_test.cpp609 uint64_t num_sectors = client_->InitDmUserCow(system_device_ctrl_name_, cow_system_->path, in InitCowDevice() local
611 ASSERT_NE(num_sectors, 0); in InitCowDevice()
/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/
Dcow_snapuserd_test.cpp800 ASSERT_EQ(total_base_size_ / kSectorSize, merge_table.num_sectors()); in StartMerge()