/system/core/fs_mgr/liblp/include/liblp/ |
D | builder.h | 53 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);
|
D | metadata_format.h | 283 uint64_t num_sectors; member
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 82 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/ |
D | builder_test.cpp | 76 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 …]
|
D | builder.cpp | 95 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 …]
|
D | images.cpp | 356 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()
|
D | super_layout_builder.cpp | 185 size_t size = e.num_sectors * LP_SECTOR_SIZE; in GetImageLayout()
|
D | utility.cpp | 157 total_size += extent.num_sectors * LP_SECTOR_SIZE; in GetPartitionSize()
|
D | io_test.cpp | 202 EXPECT_EQ(exported->extents[0].num_sectors, imported->extents[0].num_sectors); in TEST_F()
|
D | writer.cpp | 163 physical_sector + extent.num_sectors > last_sector) { in ValidateAndSerializeMetadata()
|
/system/core/fs_mgr/libfiemap/ |
D | metadata.cpp | 153 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()
|
D | image_manager.cpp | 762 linear_a->num_sectors() == linear_b->num_sectors() && in CompareExtent()
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 101 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/ |
D | dm_table.cpp | 50 uint64_t DmTable::num_sectors() const { in num_sectors() function in android::dm::DmTable
|
D | dm_test.cpp | 102 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/ |
D | snapuserd_client.cpp | 243 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/ |
D | dm_table.h | 65 uint64_t num_sectors() const;
|
/system/extras/partition_tools/ |
D | lpdump.cc | 335 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()
|
D | lpunpack.cc | 253 total_size += extent.num_sectors * LP_SECTOR_SIZE; in ExtractPartition() 290 uint64_t remaining_bytes = extent.num_sectors * LP_SECTOR_SIZE; in WriteExtent()
|
D | lpadd.cc | 346 std::min(file_size - (uint64_t)pos, extent.num_sectors * LP_SECTOR_SIZE); in WriteExtent()
|
/system/core/fs_mgr/libsnapshot/ |
D | partition_cow_creator.cpp | 63 if (intersection != nullptr && intersection->num_sectors() == e->num_sectors()) { in HasExtent()
|
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | snapuserd_test.cpp | 609 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/ |
D | cow_snapuserd_test.cpp | 800 ASSERT_EQ(total_base_size_ / kSectorSize, merge_table.num_sectors()); in StartMerge()
|