Home
last modified time | relevance | path

Searched refs:alignment_offset (Results 1 – 9 of 9) sorted by relevance

/system/core/fs_mgr/liblp/
Dpartition_opener.cpp76 int alignment_offset; in GetBlockDeviceInfo() local
77 if (ioctl(fd, BLKALIGNOFF, &alignment_offset) < 0) { in GetBlockDeviceInfo()
83 if (alignment_offset == -1) { in GetBlockDeviceInfo()
84 alignment_offset = 0; in GetBlockDeviceInfo()
93 device_info->alignment_offset = static_cast<uint32_t>(alignment_offset); in GetBlockDeviceInfo()
Dbuilder_test.cpp170 device_info.alignment_offset = 753664; in TEST_F()
186 device_info.alignment_offset = 3 * 1024; in TEST_F()
449 device_info.alignment_offset = 32768 - LP_SECTOR_SIZE; in TEST_F()
464 EXPECT_EQ(new_info.alignment_offset, device_info.alignment_offset); in TEST_F()
468 device_info.alignment_offset = 2048; in TEST_F()
472 EXPECT_EQ(new_info.alignment_offset, device_info.alignment_offset); in TEST_F()
475 device_info.alignment_offset = 0; in TEST_F()
479 EXPECT_EQ(new_info.alignment_offset, 2048); in TEST_F()
669 EXPECT_EQ(metadata->block_devices[0].alignment_offset, 229376); in TEST_F()
673 EXPECT_EQ(metadata->block_devices[1].alignment_offset, 753664); in TEST_F()
[all …]
Dbuilder.cpp376 if (device_info.alignment_offset % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties()
386 if (device_info.alignment_offset > device_info.alignment) { in VerifyDeviceProperties()
433 out.alignment_offset = device_info.alignment_offset; in Init()
492 if (super.alignment || super.alignment_offset) { in Init()
1031 info->alignment_offset = block_devices_[index].alignment_offset; in GetBlockDeviceInfo()
1068 if (device_info.alignment_offset) { in UpdateBlockDeviceInfo()
1069 block_device.alignment_offset = device_info.alignment_offset; in UpdateBlockDeviceInfo()
/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()
34 alignment_offset(alignment_offset), in BlockDeviceInfo()
45 uint32_t alignment_offset; member
Dmetadata_format.h356 uint32_t alignment_offset; member
/system/extras/partition_tools/
Ddynamic_partitions_device_info.proto55 uint64 alignment_offset = 5 [json_name = "alignment_offset"]; field
Dlpmake.cc136 uint32_t alignment_offset = 0; in main() local
186 if (!android::base::ParseUint(optarg, &alignment_offset)) { in main()
246 !android::base::ParseUint(parts[3].c_str(), &info.alignment_offset)) { in main()
301 … block_devices.emplace_back(super_name, blockdevice_size, alignment, alignment_offset, block_size); in main()
Dlpdump.cc174 block_device_proto->set_alignment_offset(info.alignment_offset); in MergeMetadata()
/system/core/fs_mgr/libsnapshot/
Dtest_helpers.cpp63 info->alignment_offset = 0; in GetInfo()