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.cpp451 out.first_logical_sector = free_area_start / LP_SECTOR_SIZE; in Init()
454 uint64_t minimum_size = out.first_logical_sector * LP_SECTOR_SIZE + logical_block_size; in Init()
496 super.first_logical_sector = free_area_start / LP_SECTOR_SIZE; in Init()
499 uint64_t minimum_disk_size = (super.first_logical_sector * LP_SECTOR_SIZE) + logical_block_size; in Init()
637 uint64_t first_sector = block_device.first_logical_sector; in GetFreeRegions()
777 uint64_t first_sector = super.first_logical_sector; in PrioritizeSecondHalfOfSuper()
973 total_size += block_device.size - (block_device.first_logical_sector * LP_SECTOR_SIZE); in AllocatableSpace()
1134 return first.first_logical_sector == second.first_logical_sector && first.size == second.size && in CompareBlockDevices()
Dio_test.cpp208 EXPECT_EQ(exported->block_devices[0].first_logical_sector, in TEST_F()
209 imported->block_devices[0].first_logical_sector); in TEST_F()
250 for (uint64_t i = super_device->first_logical_sector; i < last_sector; i++) { in TEST_F()
298 imported->block_devices[0].first_logical_sector++; in TEST_F()
420 ASSERT_GE(lseek(fd, super_device->first_logical_sector * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST_F()
Dbuilder_test.cpp169 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
179 EXPECT_EQ(super_device->first_logical_sector, 1536); in TEST_F()
195 EXPECT_EQ(super_device->first_logical_sector, 168); in TEST_F()
205 EXPECT_EQ(super_device->first_logical_sector, 154); in TEST_F()
347 EXPECT_EQ(super_device->first_logical_sector, 32); in TEST_F()
351 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.cc281 uint64_t metadata_size = super_device->first_logical_sector * LP_SECTOR_SIZE; in DumpMetadataSize()
373 cout << " First sector: " << block_device.first_logical_sector << "\n"; in PrintMetadata()