/system/core/fs_mgr/libfiemap/ |
D | metadata.cpp | 136 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in FillPartitionExtents() 138 if (extent.fe_length % LP_SECTOR_SIZE != 0) { in FillPartitionExtents() 142 if (extent.fe_physical % LP_SECTOR_SIZE != 0) { in FillPartitionExtents() 148 std::min(static_cast<uint64_t>(extent.fe_length / LP_SECTOR_SIZE), sectors_needed); in FillPartitionExtents() 156 uint64_t physical_sector = extent.fe_physical / LP_SECTOR_SIZE; in FillPartitionExtents()
|
D | image_manager.cpp | 388 if (partition_size % LP_SECTOR_SIZE != 0) { in MapWithLoopDeviceList() 397 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in MapWithLoopDeviceList() 409 uint64_t file_sectors = file_size / LP_SECTOR_SIZE; in MapWithLoopDeviceList()
|
/system/core/fs_mgr/liblp/ |
D | device_test.cpp | 52 EXPECT_EQ(device_info.alignment % LP_SECTOR_SIZE, 0); in TEST_F() 53 EXPECT_EQ(device_info.logical_block_size % LP_SECTOR_SIZE, 0); in TEST_F()
|
D | builder.cpp | 102 size_ += extent->num_sectors() * LP_SECTOR_SIZE; in AddExtent() 134 uint64_t sectors_to_remove = (size_ - aligned_size) / LP_SECTOR_SIZE; in ShrinkTo() 138 size_ -= sectors_to_remove * LP_SECTOR_SIZE; in ShrinkTo() 142 size_ -= (extent->num_sectors() * LP_SECTOR_SIZE); in ShrinkTo() 171 return sectors * LP_SECTOR_SIZE; in BytesOnDisk() 366 if (device_info.logical_block_size % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties() 376 if (device_info.alignment_offset % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties() 381 if (device_info.alignment % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties() 406 if (!AlignTo(metadata_max_size, LP_SECTOR_SIZE, &metadata_max_size)) { in Init() 440 uint64_t free_area_start = LP_SECTOR_SIZE; in Init() [all …]
|
D | images.cpp | 176 if (block_size % LP_SECTOR_SIZE != 0) { in ImageBuilder() 177 LERROR << "Block size must be a multiple of the sector size, " << LP_SECTOR_SIZE; in ImageBuilder() 282 if ((sector * LP_SECTOR_SIZE) % block_size_ != 0) { in SectorToBlock() 286 *block = (sector * LP_SECTOR_SIZE) / block_size_; in SectorToBlock() 291 return (block * block_size_) / LP_SECTOR_SIZE; in BlockToSector() 310 uint64_t first_sector = LP_PARTITION_RESERVED_BYTES / LP_SECTOR_SIZE; in Build() 441 output_sector += block_size_ / LP_SECTOR_SIZE; in AddPartitionImage() 453 return sectors * LP_SECTOR_SIZE; in ComputePartitionSize() 475 if ((extent.num_sectors * LP_SECTOR_SIZE) % block_size_ != 0) { in CheckExtentOrdering()
|
D | io_test.cpp | 243 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in TEST_F() 248 char expected[LP_SECTOR_SIZE]; in TEST_F() 251 char buffer[LP_SECTOR_SIZE]; in TEST_F() 252 ASSERT_GE(lseek(fd, i * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST_F() 254 ASSERT_EQ(memcmp(expected, buffer, LP_SECTOR_SIZE), 0); in TEST_F() 287 imported->geometry.metadata_max_size += LP_SECTOR_SIZE; in TEST_F() 417 char expected[LP_SECTOR_SIZE]; in TEST_F() 419 char buffer[LP_SECTOR_SIZE]; in TEST_F() 420 ASSERT_GE(lseek(fd, super_device->first_logical_sector * LP_SECTOR_SIZE, SEEK_SET), 0); in TEST_F() 422 EXPECT_EQ(memcmp(expected, buffer, LP_SECTOR_SIZE), 0); in TEST_F()
|
D | writer.cpp | 112 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() 158 uint64_t last_sector = super_device->size / LP_SECTOR_SIZE; in ValidateAndSerializeMetadata() 179 if (start + size >= super_device->first_logical_sector * LP_SECTOR_SIZE) { in ValidateMetadataRegion()
|
D | builder_test.cpp | 76 EXPECT_EQ(extent->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F() 87 EXPECT_EQ(system->extents()[0]->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F() 96 EXPECT_EQ(system->extents()[0]->num_sectors(), 131072 / LP_SECTOR_SIZE); in TEST_F() 101 EXPECT_EQ(system->extents()[0]->num_sectors(), (1024 * 256) / LP_SECTOR_SIZE); in TEST_F() 109 EXPECT_EQ(extent->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F() 234 uint64_t lba = extent.target_data * LP_SECTOR_SIZE; in TEST_F() 293 EXPECT_EQ(system1->num_sectors(), 65536 / LP_SECTOR_SIZE); in TEST_F() 295 EXPECT_EQ(system2->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F() 297 EXPECT_EQ(vendor1->num_sectors(), 32768 / LP_SECTOR_SIZE); in TEST_F() 351 EXPECT_GE(super_device->first_logical_sector * LP_SECTOR_SIZE, kMetadataSpace); in TEST_F() [all …]
|
D | super_layout_builder.cpp | 187 size_t size = e.num_sectors * LP_SECTOR_SIZE; in GetImageLayout() 188 uint64_t super_offset = e.target_data * LP_SECTOR_SIZE; in GetImageLayout()
|
D | reader.cpp | 111 if (geometry->metadata_max_size % LP_SECTOR_SIZE != 0) { in ParseGeometry() 358 if (metadata_region > super_device->first_logical_sector * LP_SECTOR_SIZE) { in ParseMetadata()
|
D | utility.cpp | 158 total_size += extent.num_sectors * LP_SECTOR_SIZE; in GetPartitionSize()
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 255 total_size += extent.num_sectors * LP_SECTOR_SIZE; in ExtractPartition() 286 off_t super_offset = extent.target_data * LP_SECTOR_SIZE; in WriteExtent() 292 uint64_t remaining_bytes = extent.num_sectors * LP_SECTOR_SIZE; in WriteExtent()
|
D | lpadd.cc | 346 std::min(file_size - (uint64_t)pos, extent.num_sectors * LP_SECTOR_SIZE); in WriteExtent() 349 if (lseek(super_fd_, extent.target_data * LP_SECTOR_SIZE, SEEK_SET) < 0) { in WriteExtent()
|
D | lpdump.cc | 287 uint64_t metadata_size = super_device->first_logical_sector * LP_SECTOR_SIZE; in DumpMetadataSize()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | metadata_format.h | 105 #define LP_SECTOR_SIZE 512 macro
|
/system/core/fs_mgr/liblp/fuzzer/ |
D | liblp_apis_fuzzer.cpp | 104 mFdp.ConsumeIntegralInRange<uint64_t>(kMinFactor, kMaxFactor) * LP_SECTOR_SIZE; in setupBuilder()
|
D | README.md | 113 |`blockDevSize`| Integer value in multiples of `LP_SECTOR_SIZE`|Value obtained from FuzzedDataProvi…
|
D | liblp_builder_fuzzer.cpp | 310 mFuzzPartition->GetBeginningExtents(LP_SECTOR_SIZE * numExtents); in invokeBuilderAPIs()
|
/system/gsid/ |
D | gsi_service.cpp | 211 if (size % LP_SECTOR_SIZE) { in createPartition() 212 LOG(ERROR) << " size " << size << " is not a multiple of " << LP_SECTOR_SIZE; in createPartition()
|