Searched refs:LP_SECTOR_SIZE (Results 1 – 9 of 9) sorted by relevance
/system/core/fs_mgr/liblp/ |
D | images.cpp | 109 if (block_size % LP_SECTOR_SIZE != 0) { in ImageBuilder() 110 LERROR << "Block size must be a multiple of the sector size, " << LP_SECTOR_SIZE; in ImageBuilder() 214 if ((sector * LP_SECTOR_SIZE) % block_size_ != 0) { in SectorToBlock() 218 *block = (sector * LP_SECTOR_SIZE) / block_size_; in SectorToBlock() 223 return (block * block_size_) / LP_SECTOR_SIZE; in BlockToSector() 242 uint64_t first_sector = LP_PARTITION_RESERVED_BYTES / LP_SECTOR_SIZE; in Build() 368 output_sector += block_size_ / LP_SECTOR_SIZE; in AddPartitionImage() 380 return sectors * LP_SECTOR_SIZE; in ComputePartitionSize() 402 if ((extent.num_sectors * LP_SECTOR_SIZE) % block_size_ != 0) { in CheckExtentOrdering()
|
D | builder.cpp | 57 size_ += extent->num_sectors() * LP_SECTOR_SIZE; in AddExtent() 89 uint64_t sectors_to_remove = (size_ - aligned_size) / LP_SECTOR_SIZE; in ShrinkTo() 93 size_ -= sectors_to_remove * LP_SECTOR_SIZE; in ShrinkTo() 97 size_ -= (extent->num_sectors() * LP_SECTOR_SIZE); in ShrinkTo() 112 return sectors * LP_SECTOR_SIZE; in BytesOnDisk() 277 if (device_info.logical_block_size % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties() 287 if (device_info.alignment_offset % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties() 292 if (device_info.alignment % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties() 322 metadata_max_size = AlignTo(metadata_max_size, LP_SECTOR_SIZE); in Init() 353 uint64_t free_area_start = LP_SECTOR_SIZE; in Init() [all …]
|
D | builder_test.cpp | 73 EXPECT_EQ(extent->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F() 84 EXPECT_EQ(system->extents()[0]->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F() 93 EXPECT_EQ(system->extents()[0]->num_sectors(), 131072 / LP_SECTOR_SIZE); in TEST_F() 98 EXPECT_EQ(system->extents()[0]->num_sectors(), (1024 * 256) / LP_SECTOR_SIZE); in TEST_F() 106 EXPECT_EQ(extent->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F() 223 uint64_t lba = extent.target_data * LP_SECTOR_SIZE; in TEST_F() 282 EXPECT_EQ(system1->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F() 284 EXPECT_EQ(system2->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F() 286 EXPECT_EQ(vendor1->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F() 340 EXPECT_GE(super_device->first_logical_sector * LP_SECTOR_SIZE, kMetadataSpace); in TEST_F() [all …]
|
D | io_test.cpp | 236 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in TEST() 241 char expected[LP_SECTOR_SIZE]; in TEST() 244 char buffer[LP_SECTOR_SIZE]; in TEST() 245 ASSERT_GE(lseek(fd, i * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST() 247 ASSERT_EQ(memcmp(expected, buffer, LP_SECTOR_SIZE), 0); in TEST() 280 imported->geometry.metadata_max_size += LP_SECTOR_SIZE; in TEST() 410 char expected[LP_SECTOR_SIZE]; in TEST() 412 char buffer[LP_SECTOR_SIZE]; in TEST() 413 ASSERT_GE(lseek(fd, super_device->first_logical_sector * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST() 415 EXPECT_EQ(memcmp(expected, buffer, LP_SECTOR_SIZE), 0); in TEST()
|
D | writer.cpp | 110 if (total_reserved > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateAndSerializeMetadata() 125 if ((block_device.first_logical_sector + 1) * LP_SECTOR_SIZE > block_device.size) { in ValidateAndSerializeMetadata() 151 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in ValidateAndSerializeMetadata() 172 if (start + size >= super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateMetadataRegion()
|
D | reader.cpp | 107 if (geometry->metadata_max_size % LP_SECTOR_SIZE != 0) { in ParseGeometry() 317 if (metadata_region > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ParseMetadata()
|
/system/gsid/ |
D | gsi_service.cpp | 483 if (params->gsiSize % LP_SECTOR_SIZE) { in ValidateInstallParams() 484 LOG(ERROR) << "GSI size " << params->gsiSize << " is not a multiple of " << LP_SECTOR_SIZE; in ValidateInstallParams() 487 if (params->userdataSize % LP_SECTOR_SIZE) { in ValidateInstallParams() 489 << LP_SECTOR_SIZE; in ValidateInstallParams() 1008 total += extent.num_sectors * LP_SECTOR_SIZE; in GetPartitionSize() 1160 uint64_t sectors_needed = image.actual_size / LP_SECTOR_SIZE; in AddPartitionFiemap() 1163 if (extent.fe_length % LP_SECTOR_SIZE != 0) { in AddPartitionFiemap() 1167 if (extent.fe_physical % LP_SECTOR_SIZE != 0) { in AddPartitionFiemap() 1173 std::min(static_cast<uint64_t>(extent.fe_length / LP_SECTOR_SIZE), sectors_needed); in AddPartitionFiemap() 1181 uint64_t physical_sector = extent.fe_physical / LP_SECTOR_SIZE; in AddPartitionFiemap()
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 229 total_size += extent.num_sectors * LP_SECTOR_SIZE; in ExtractPartition() 260 off_t super_offset = extent.target_data * LP_SECTOR_SIZE; in WriteExtent() 266 uint64_t remaining_bytes = extent.num_sectors * LP_SECTOR_SIZE; in WriteExtent()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | metadata_format.h | 82 #define LP_SECTOR_SIZE 512 macro
|