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.cpp80 geometry.metadata_max_size * slot_number; in GetPrimaryMetadataOffset()
87 int64_t(geometry.metadata_max_size) * geometry.metadata_slot_count; in GetBackupMetadataOffset()
88 return start + int64_t(geometry.metadata_max_size * slot_number); in GetBackupMetadataOffset()
91 uint64_t GetTotalMetadataSize(uint32_t metadata_max_size, uint32_t max_slots) { in GetTotalMetadataSize() argument
93 (LP_METADATA_GEOMETRY_SIZE + metadata_max_size * max_slots) * 2; in GetTotalMetadataSize()
Dwriter.cpp44 return g1.metadata_max_size == g2.metadata_max_size && in CompareGeometry()
92 if (blob->size() > geometry.metadata_max_size) { in ValidateAndSerializeMetadata()
94 << geometry.metadata_max_size; in ValidateAndSerializeMetadata()
101 uint64_t(geometry.metadata_max_size) * geometry.metadata_slot_count; in ValidateAndSerializeMetadata()
Dutility.h57 uint64_t GetTotalMetadataSize(uint32_t metadata_max_size, uint32_t max_slots);
Dbuilder.cpp132 uint32_t metadata_max_size, uint32_t metadata_slot_count) { in New() argument
134 if (!builder->Init(block_devices, super_partition, metadata_max_size, metadata_slot_count)) { in New()
306 const std::string& super_partition, uint32_t metadata_max_size, in Init() argument
308 if (metadata_max_size < sizeof(LpMetadataHeader)) { in Init()
322 metadata_max_size = AlignTo(metadata_max_size, LP_SECTOR_SIZE); in Init()
386 uint64_t total_reserved = GetTotalMetadataSize(metadata_max_size, metadata_slot_count); in Init()
409 geometry_.metadata_max_size = metadata_max_size; in Init()
Dimages.cpp117 if (metadata.geometry.metadata_max_size % block_size != 0) { in ImageBuilder()
234 metadata_blob.resize(geometry_.metadata_max_size); in Build()
Dreader.cpp107 if (geometry->metadata_max_size % LP_SECTOR_SIZE != 0) { in ParseGeometry()
316 GetTotalMetadataSize(geometry.metadata_max_size, geometry.metadata_slot_count); in ParseMetadata()
Dio_test.cpp179 EXPECT_EQ(exported->geometry.metadata_max_size, imported->geometry.metadata_max_size); in TEST()
280 imported->geometry.metadata_max_size += LP_SECTOR_SIZE; in TEST()
Dbuilder_test.cpp147 EXPECT_EQ(exported->geometry.metadata_max_size, 1024); in TEST_F()
334 EXPECT_EQ(geometry.metadata_max_size, 1024); in TEST_F()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h149 uint32_t metadata_max_size,
184 uint32_t metadata_max_size, in New() argument
186 return New({device_info}, device_info.partition_name, metadata_max_size, in New()
192 static std::unique_ptr<MetadataBuilder> New(uint64_t blockdev_size, uint32_t metadata_max_size, in New() argument
196 return New(device_info, metadata_max_size, metadata_slot_count); in New()
296 uint32_t metadata_max_size, uint32_t metadata_slot_count);
Dmetadata_format.h106 uint32_t metadata_max_size; member
/system/extras/partition_tools/
Dlpdump.cc329 cout << "Metadata max size: " << pt->geometry.metadata_max_size << " bytes\n"; in LpdumpMain()