Home
last modified time | relevance | path

Searched refs:first_logical_sector (Results 1 – 7 of 7) sorted by relevance

/system/core/fs_mgr/liblp/
Dwriter.cpp112 if (total_reserved > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateAndSerializeMetadata()
127 if ((block_device.first_logical_sector + 1) * LP_SECTOR_SIZE > block_device.size) { in ValidateAndSerializeMetadata()
129 << block_device.first_logical_sector << " for size " << block_device.size; in ValidateAndSerializeMetadata()
162 if (physical_sector < super_device->first_logical_sector || in ValidateAndSerializeMetadata()
179 if (start + size >= super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateMetadataRegion()
Dbuilder.cpp456 out.first_logical_sector = free_area_start / LP_SECTOR_SIZE; in Init()
459 uint64_t minimum_size = out.first_logical_sector * LP_SECTOR_SIZE + logical_block_size; in Init()
501 super.first_logical_sector = free_area_start / LP_SECTOR_SIZE; in Init()
504 uint64_t minimum_disk_size = (super.first_logical_sector * LP_SECTOR_SIZE) + logical_block_size; in Init()
642 uint64_t first_sector = block_device.first_logical_sector; in GetFreeRegions()
782 uint64_t first_sector = super.first_logical_sector; in PrioritizeSecondHalfOfSuper()
978 total_size += block_device.size - (block_device.first_logical_sector * LP_SECTOR_SIZE); in AllocatableSpace()
1139 return first.first_logical_sector == second.first_logical_sector && first.size == second.size && in CompareBlockDevices()
Dio_test.cpp204 EXPECT_EQ(exported->block_devices[0].first_logical_sector, in TEST_F()
205 imported->block_devices[0].first_logical_sector); in TEST_F()
246 for (uint64_t i = super_device->first_logical_sector; i < last_sector; i++) { in TEST_F()
294 imported->block_devices[0].first_logical_sector++; in TEST_F()
416 ASSERT_GE(lseek(fd, super_device->first_logical_sector * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST_F()
Dbuilder_test.cpp167 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
177 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
193 EXPECT_EQ(super_device->first_logical_sector, 168); in TEST_F()
203 EXPECT_EQ(super_device->first_logical_sector, 154); in TEST_F()
345 EXPECT_EQ(super_device->first_logical_sector, 32); in TEST_F()
349 EXPECT_GE(super_device->first_logical_sector * LP_SECTOR_SIZE, kMetadataSpace); in TEST_F()
Dreader.cpp358 if (metadata_region > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ParseMetadata()
/system/core/fs_mgr/liblp/include/liblp/
Dmetadata_format.h334 uint64_t first_logical_sector; member
/system/extras/partition_tools/
Dlpdump.cc274 uint64_t metadata_size = super_device->first_logical_sector * LP_SECTOR_SIZE; in DumpMetadataSize()
366 cout << " First sector: " << block_device.first_logical_sector << "\n"; in PrintMetadata()