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.h371 uint64_t logical_block_size() const;
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp163 const uint64_t logical_block_size = current_metadata->logical_block_size(); in GetCowSize() local
164 const unsigned int sectors_per_block = logical_block_size / kSectorSize; in GetCowSize()
196 const uint64_t logical_block_size = current_metadata->logical_block_size(); in Run() local
197 CHECK(logical_block_size != 0 && !(logical_block_size & (logical_block_size - 1))) in Run()
249 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.cpp91 int logical_block_size; in GetBlockDeviceInfo() local
92 if (ioctl(fd, BLKSSZGET, &logical_block_size) < 0) { in GetBlockDeviceInfo()
98 device_info->logical_block_size = static_cast<uint32_t>(logical_block_size); in GetBlockDeviceInfo()
Dbuilder.cpp361 if (device_info.logical_block_size == 0) { in VerifyDeviceProperties()
366 if (device_info.logical_block_size % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties()
371 if (device_info.size % device_info.logical_block_size != 0) { in VerifyDeviceProperties()
412 uint32_t logical_block_size = 0; in Init() local
418 if (!logical_block_size) { in Init()
419 logical_block_size = device_info.logical_block_size; in Init()
421 if (logical_block_size != device_info.logical_block_size) { in Init()
445 ok = AlignTo(free_area_start, logical_block_size, &free_area_start); in Init()
454 uint64_t minimum_size = out.first_logical_sector * LP_SECTOR_SIZE + logical_block_size; in Init()
490 ok = AlignTo(free_area_start, logical_block_size, &free_area_start); in Init()
[all …]
Ddevice_test.cpp53 EXPECT_EQ(device_info.logical_block_size % LP_SECTOR_SIZE, 0); in TEST_F()
Dwriter.cpp47 g1.logical_block_size == g2.logical_block_size; in CompareGeometry()
Dbuilder_test.cpp439 device_info.size += device_info.logical_block_size; in TEST_F()
460 EXPECT_EQ(new_info.logical_block_size, device_info.logical_block_size); in TEST_F()
481 new_info.logical_block_size = 512; in TEST_F()
484 EXPECT_EQ(new_info.logical_block_size, 4096); in TEST_F()
486 new_info.logical_block_size = 7; in TEST_F()
489 EXPECT_EQ(new_info.logical_block_size, 4096); in TEST_F()
/system/extras/partition_tools/
Dlpunpack.cc240 SparseWriter writer(output_fd, image_fd_, metadata_->geometry.logical_block_size); in ExtractPartition()
Dlpmake.cc376 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.cpp1051 margin_size = 3 * info.logical_block_size; in CreateDynamicScratch()
/system/core/fastboot/
Dfastboot.cpp1822 auto block_size = metadata.geometry.logical_block_size; in wipe_super()