Home
last modified time | relevance | path

Searched refs:BlockDeviceInfo (Results 1 – 20 of 20) sorted by relevance

/system/core/fs_mgr/liblp/include/liblp/
Dpartition_opener.h28 struct BlockDeviceInfo { struct
29 BlockDeviceInfo() : size(0), alignment(0), alignment_offset(0), logical_block_size(0) {} in BlockDeviceInfo() argument
30 BlockDeviceInfo(const std::string& partition_name, uint64_t size, uint32_t alignment, in BlockDeviceInfo() argument
64 virtual bool GetInfo(const std::string& partition_name, BlockDeviceInfo* info) const = 0; argument
78 virtual bool GetInfo(const std::string& partition_name, BlockDeviceInfo* info) const override;
Dbuilder.h206 static std::unique_ptr<MetadataBuilder> New(const std::vector<BlockDeviceInfo>& block_devices,
247 static std::unique_ptr<MetadataBuilder> New(const BlockDeviceInfo& device_info, in New()
258 BlockDeviceInfo device_info(LP_METADATA_DEFAULT_PARTITION_NAME, blockdev_size, 0, 0, in New()
350 bool GetBlockDeviceInfo(const std::string& partition_name, BlockDeviceInfo* info) const;
351 bool UpdateBlockDeviceInfo(const std::string& partition_name, const BlockDeviceInfo& info);
379 bool Init(const std::vector<BlockDeviceInfo>& block_devices, const std::string& super_partition,
387 bool UpdateBlockDeviceInfo(size_t index, const BlockDeviceInfo& info);
429 bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info);
/system/core/fs_mgr/liblp/
Dtest_partition_opener.h31 const std::map<std::string, BlockDeviceInfo>& partition_info = {});
34 bool GetInfo(const std::string& partition_name, BlockDeviceInfo* info) const override;
38 std::map<std::string, BlockDeviceInfo> partition_info_;
Dtest_partition_opener.cpp28 const std::map<std::string, BlockDeviceInfo>& partition_info) in TestPartitionOpener()
40 bool TestPartitionOpener::GetInfo(const std::string& partition_name, BlockDeviceInfo* info) const { in GetInfo()
Ddevice_test.cpp45 TEST_F(DeviceTest, BlockDeviceInfo) { in TEST_F() argument
47 BlockDeviceInfo device_info; in TEST_F()
Dbuilder_test.cpp160 BlockDeviceInfo device_info("super", 1024 * 1024, 768 * 1024, 0, 4096); in TEST_F()
207 BlockDeviceInfo device_info("super", 512 * 1024 * 1024, 768 * 1024, 753664, 4096); in TEST_F()
429 BlockDeviceInfo device_info("super", kDiskSize, 0, 0, 4096); in TEST_F()
450 BlockDeviceInfo device_info("super", 1024 * 1024, 4096, 1024, 4096); in TEST_F()
454 BlockDeviceInfo new_info; in TEST_F()
493 BlockDeviceInfo device_info("super", 1024 * 1024, 0, 0, 513); in TEST_F()
499 BlockDeviceInfo device_info("super", 1024 * 1024, 0, 0, 4096); in TEST_F()
511 BlockDeviceInfo device_info("super", 10240, 0, 0, 4096); in TEST_F()
517 BlockDeviceInfo device_info("super", 1024 * 1024, 0, 0, 4096); in TEST_F()
525 BlockDeviceInfo device_info("super", 1024 * 1024, 0, 0, 4096); in TEST_F()
[all …]
Dpartition_opener.cpp65 bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info) { in GetBlockDeviceInfo()
116 bool PartitionOpener::GetInfo(const std::string& partition_name, BlockDeviceInfo* info) const { in GetInfo()
Dbuilder.cpp190 const std::vector<BlockDeviceInfo>& block_devices, const std::string& super_partition, in New()
208 BlockDeviceInfo device_info; in New()
360 static bool VerifyDeviceProperties(const BlockDeviceInfo& device_info) { in VerifyDeviceProperties()
389 bool MetadataBuilder::Init(const std::vector<BlockDeviceInfo>& block_devices, in Init()
1018 BlockDeviceInfo* info) const { in GetBlockDeviceInfo()
1033 const BlockDeviceInfo& device_info) { in UpdateBlockDeviceInfo()
1042 bool MetadataBuilder::UpdateBlockDeviceInfo(size_t index, const BlockDeviceInfo& device_info) { in UpdateBlockDeviceInfo()
Dio_test.cpp46 static const BlockDeviceInfo kSuperInfo{"super", kDiskSize, 0, 0, 4096};
596 BlockDeviceInfo device_info("super", kDiskSize, 0, 0, 512); in TEST_F()
Dwriter.cpp136 BlockDeviceInfo info; in ValidateAndSerializeMetadata()
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp76 BlockDeviceInfo device_info; in OpenOrCreateMetadata()
82 std::vector<BlockDeviceInfo> block_devices = {device_info}; in OpenOrCreateMetadata()
Dimage_test.cpp44 using android::fs_mgr::BlockDeviceInfo;
59 bool GetInfo(const std::string& partition_name, BlockDeviceInfo* info) const override { in GetInfo()
/system/extras/partition_tools/
Dlpmake.cc201 std::vector<BlockDeviceInfo> block_devices; in main()
300 BlockDeviceInfo info; in main()
Dlpdump.cc165 BlockDeviceInfo info; in MergeMetadata()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp60 using android::fs_mgr::BlockDeviceInfo;
451 BlockDeviceInfo super_device("super", SUPER_IMAGE_SIZE, 0, 0, 4096); in CheckWriteSuperMetadata()
452 std::vector<BlockDeviceInfo> devices = {super_device}; in CheckWriteSuperMetadata()
Dpartition_cow_creator_test.cpp88 BlockDeviceInfo super_device("super", kSuperSize, 0, 0, 4_KiB); in TEST_F()
89 std::vector<BlockDeviceInfo> devices = {super_device}; in TEST_F()
Dtest_helpers.cpp56 android::fs_mgr::BlockDeviceInfo* info) const { in GetInfo()
Dsnapshot_test.cpp61 using android::fs_mgr::BlockDeviceInfo;
172 BlockDeviceInfo super_device("super", kSuperSize, 0, 0, 4096); in FormatFakeSuper()
173 std::vector<BlockDeviceInfo> devices = {super_device}; in FormatFakeSuper()
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h65 android::fs_mgr::BlockDeviceInfo* info) const override;
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp1049 BlockDeviceInfo info; in CreateDynamicScratch()
1120 BlockDeviceInfo info; in CreateScratchOnData()