Home
last modified time | relevance | path

Searched refs:logical_block_size (Results 1 – 15 of 15) sorted by relevance

/system/core/fs_mgr/liblp/include/liblp/
Dpartition_opener.h29 BlockDeviceInfo() : size(0), alignment(0), alignment_offset(0), logical_block_size(0) {} in BlockDeviceInfo()
31 uint32_t alignment_offset, uint32_t logical_block_size) in BlockDeviceInfo()
35 logical_block_size(logical_block_size), in BlockDeviceInfo()
47 uint32_t logical_block_size; member
Dmetadata_format.h143 uint32_t logical_block_size; member
Dbuilder.h350 uint64_t logical_block_size() const;
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp142 const uint64_t logical_block_size = current_metadata->logical_block_size(); in GetCowSize() local
143 const unsigned int sectors_per_block = logical_block_size / kSectorSize; in GetCowSize()
175 const uint64_t logical_block_size = current_metadata->logical_block_size(); in Run() local
176 CHECK(logical_block_size != 0 && !(logical_block_size & (logical_block_size - 1))) in Run()
221 cow_partition_size &= ~(logical_block_size - 1); in Run()
Dpartition_cow_creator_test.cpp142 const uint64_t block_size = builder_b->logical_block_size(); in TEST_F()
/system/core/fs_mgr/liblp/
Dpartition_opener.cpp87 int logical_block_size; in GetBlockDeviceInfo() local
88 if (ioctl(fd, BLKSSZGET, &logical_block_size) < 0) { in GetBlockDeviceInfo()
94 device_info->logical_block_size = static_cast<uint32_t>(logical_block_size); in GetBlockDeviceInfo()
Dbuilder.cpp329 if (device_info.logical_block_size == 0) { in VerifyDeviceProperties()
334 if (device_info.logical_block_size % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties()
339 if (device_info.size % device_info.logical_block_size != 0) { in VerifyDeviceProperties()
382 uint32_t logical_block_size = 0; in Init() local
388 if (!logical_block_size) { in Init()
389 logical_block_size = device_info.logical_block_size; in Init()
391 if (logical_block_size != device_info.logical_block_size) { in Init()
414 free_area_start = AlignTo(free_area_start, logical_block_size); in Init()
419 uint64_t minimum_size = out.first_logical_sector * LP_SECTOR_SIZE + logical_block_size; in Init()
454 free_area_start = AlignTo(free_area_start, logical_block_size); in Init()
[all …]
Ddevice_test.cpp55 EXPECT_EQ(device_info.logical_block_size % LP_SECTOR_SIZE, 0); in TEST_F()
Dbuilder_test.cpp438 device_info.size += device_info.logical_block_size; in TEST_F()
464 EXPECT_EQ(new_info.logical_block_size, device_info.logical_block_size); in TEST_F()
485 new_info.logical_block_size = 512; in TEST_F()
488 EXPECT_EQ(new_info.logical_block_size, 4096); in TEST_F()
490 new_info.logical_block_size = 7; in TEST_F()
493 EXPECT_EQ(new_info.logical_block_size, 4096); in TEST_F()
Dwriter.cpp47 g1.logical_block_size == g2.logical_block_size; in CompareGeometry()
/system/extras/partition_tools/
Dlpunpack.cc240 SparseWriter writer(output_fd, image_fd_, metadata_->geometry.logical_block_size); in ExtractPartition()
Dlpmake.cc305 block_device.logical_block_size = block_size; in main()
Dlpdump.cc172 block_device_proto->set_block_size(info.logical_block_size); in MergeMetadata()
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp981 margin_size = 3 * info.logical_block_size; in CreateDynamicScratch()
/system/core/fastboot/
Dfastboot.cpp1689 auto block_size = metadata.geometry.logical_block_size; in wipe_super()