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() function
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()
455 BlockDeviceInfo device_info("super", 1024 * 1024, 4096, 1024, 4096); in TEST_F()
459 BlockDeviceInfo new_info; in TEST_F()
498 BlockDeviceInfo device_info("super", 1024 * 1024, 0, 0, 513); in TEST_F()
504 BlockDeviceInfo device_info("super", 1024 * 1024, 0, 0, 4096); in TEST_F()
516 BlockDeviceInfo device_info("super", 10240, 0, 0, 4096); in TEST_F()
522 BlockDeviceInfo device_info("super", 1024 * 1024, 0, 0, 4096); in TEST_F()
530 BlockDeviceInfo device_info("super", 1024 * 1024, 0, 0, 4096); in TEST_F()
[all …]
Dpartition_opener.cpp61 bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info) { in GetBlockDeviceInfo()
112 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()
394 bool MetadataBuilder::Init(const std::vector<BlockDeviceInfo>& block_devices, in Init()
1023 BlockDeviceInfo* info) const { in GetBlockDeviceInfo()
1038 const BlockDeviceInfo& device_info) { in UpdateBlockDeviceInfo()
1047 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/
Dimage_test.cpp41 using android::fs_mgr::BlockDeviceInfo;
56 bool GetInfo(const std::string& partition_name, BlockDeviceInfo* info) const override { in GetInfo()
Dmetadata.cpp76 BlockDeviceInfo device_info; in OpenOrCreateMetadata()
82 std::vector<BlockDeviceInfo> block_devices = {device_info}; in OpenOrCreateMetadata()
/system/extras/partition_tools/
Dlpmake.cc143 std::vector<BlockDeviceInfo> block_devices; in main()
233 BlockDeviceInfo info; in main()
Dlpdump.cc165 BlockDeviceInfo info; in MergeMetadata()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp60 using android::fs_mgr::BlockDeviceInfo;
454 BlockDeviceInfo super_device("super", SUPER_IMAGE_SIZE, 0, 0, 4096); in CheckWriteSuperMetadata()
455 std::vector<BlockDeviceInfo> devices = {super_device}; in CheckWriteSuperMetadata()
Dpartition_cow_creator_test.cpp82 BlockDeviceInfo super_device("super", kSuperSize, 0, 0, 4_KiB); in TEST_F()
83 std::vector<BlockDeviceInfo> devices = {super_device}; in TEST_F()
Dtest_helpers.cpp54 android::fs_mgr::BlockDeviceInfo* info) const { in GetInfo()
Dsnapshot_test.cpp57 using android::fs_mgr::BlockDeviceInfo;
167 BlockDeviceInfo super_device("super", kSuperSize, 0, 0, 4096); in FormatFakeSuper()
168 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.cpp990 BlockDeviceInfo info; in CreateDynamicScratch()
1061 BlockDeviceInfo info; in CreateScratchOnData()