Home
last modified time | relevance | path

Searched refs:metadata_max_size (Results 1 – 11 of 11) sorted by relevance

/system/core/fs_mgr/liblp/
Dutility.cpp86 geometry.metadata_max_size * slot_number; in GetPrimaryMetadataOffset()
93 int64_t(geometry.metadata_max_size) * geometry.metadata_slot_count; in GetBackupMetadataOffset()
94 return start + int64_t(geometry.metadata_max_size * slot_number); in GetBackupMetadataOffset()
97 uint64_t GetTotalMetadataSize(uint32_t metadata_max_size, uint32_t max_slots) { in GetTotalMetadataSize() argument
99 (LP_METADATA_GEOMETRY_SIZE + metadata_max_size * max_slots) * 2; in GetTotalMetadataSize()
Dwriter.cpp45 return g1.metadata_max_size == g2.metadata_max_size && in CompareGeometry()
94 if (blob->size() > geometry.metadata_max_size) { in ValidateAndSerializeMetadata()
96 << geometry.metadata_max_size; in ValidateAndSerializeMetadata()
103 uint64_t(geometry.metadata_max_size) * geometry.metadata_slot_count; in ValidateAndSerializeMetadata()
Dbuilder.cpp191 uint32_t metadata_max_size, uint32_t metadata_slot_count) { in New() argument
193 if (!builder->Init(block_devices, super_partition, metadata_max_size, metadata_slot_count)) { in New()
395 const std::string& super_partition, uint32_t metadata_max_size, in Init() argument
397 if (metadata_max_size < sizeof(LpMetadataHeader)) { in Init()
411 if (!AlignTo(metadata_max_size, LP_SECTOR_SIZE, &metadata_max_size)) { in Init()
412 LERROR << "Max metadata size " << metadata_max_size << " is too large."; in Init()
483 uint64_t total_reserved = GetTotalMetadataSize(metadata_max_size, metadata_slot_count); in Init()
511 geometry_.metadata_max_size = metadata_max_size; in Init()
Dutility.h61 uint64_t GetTotalMetadataSize(uint32_t metadata_max_size, uint32_t max_slots);
Dreader.cpp111 if (geometry->metadata_max_size % LP_SECTOR_SIZE != 0) { in ParseGeometry()
259 if (header.tables_size > geometry.metadata_max_size) { in ParseMetadata()
357 GetTotalMetadataSize(geometry.metadata_max_size, geometry.metadata_slot_count); in ParseMetadata()
Dimages.cpp151 if (metadata.geometry.metadata_max_size % block_size != 0) { in ImageBuilder()
268 metadata_blob.resize(geometry_.metadata_max_size); in Build()
Dio_test.cpp182 EXPECT_EQ(exported->geometry.metadata_max_size, imported->geometry.metadata_max_size); in TEST_F()
283 imported->geometry.metadata_max_size += LP_SECTOR_SIZE; in TEST_F()
Dbuilder_test.cpp155 EXPECT_EQ(exported->geometry.metadata_max_size, 1024); in TEST_F()
343 EXPECT_EQ(geometry.metadata_max_size, 1024); in TEST_F()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h208 uint32_t metadata_max_size,
248 uint32_t metadata_max_size, in New() argument
250 return New({device_info}, device_info.partition_name, metadata_max_size, in New()
256 static std::unique_ptr<MetadataBuilder> New(uint64_t blockdev_size, uint32_t metadata_max_size, in New() argument
260 return New(device_info, metadata_max_size, metadata_slot_count); in New()
380 uint32_t metadata_max_size, uint32_t metadata_slot_count);
Dmetadata_format.h129 uint32_t metadata_max_size; member
/system/extras/partition_tools/
Dlpdump.cc310 cout << "Metadata max size: " << pt.geometry.metadata_max_size << " bytes\n"; in PrintMetadata()