Home
last modified time | relevance | path

Searched refs:DeviceMapper (Results 1 – 25 of 35) sorted by relevance

12

/system/core/fs_mgr/libdm/
Ddm.cpp47 DeviceMapper::DeviceMapper() : fd_(-1) { in DeviceMapper() function in android::dm::DeviceMapper
54 DeviceMapper& DeviceMapper::Instance() { in Instance()
55 static DeviceMapper instance; in Instance()
60 bool DeviceMapper::CreateDevice(const std::string& name, const std::string& uuid) { in CreateDevice()
90 bool DeviceMapper::DeleteDeviceIfExists(const std::string& name, in DeleteDeviceIfExists()
98 bool DeviceMapper::DeleteDeviceIfExists(const std::string& name) { in DeleteDeviceIfExists()
102 bool DeviceMapper::DeleteDevice(const std::string& name, in DeleteDevice()
136 bool DeviceMapper::DeleteDevice(const std::string& name) { in DeleteDevice()
140 bool DeviceMapper::DeleteDeviceDeferred(const std::string& name) { in DeleteDeviceDeferred()
152 bool DeviceMapper::DeleteDeviceIfExistsDeferred(const std::string& name) { in DeleteDeviceIfExistsDeferred()
[all …]
Ddm_test.cpp48 DeviceMapper& dm = DeviceMapper::Instance(); in TEST()
81 auto& dm = DeviceMapper::Instance(); in TEST()
107 vector<DeviceMapper::TargetInfo> targets; in TEST()
120 EXPECT_EQ(DeviceMapper::GetTargetType(targets[0].spec), std::string{"linear"}); in TEST()
121 EXPECT_EQ(DeviceMapper::GetTargetType(targets[1].spec), std::string{"linear"}); in TEST()
144 auto& dm = DeviceMapper::Instance(); in TEST()
147 vector<DeviceMapper::TargetInfo> targets; in TEST()
289 DeviceMapper& dm = DeviceMapper::Instance(); in MergeImpl()
293 vector<DeviceMapper::TargetInfo> status; in MergeImpl()
315 DeviceMapper& dm = DeviceMapper::Instance(); in CheckSnapshotAvailability()
[all …]
Ddm_linear_fuzzer.cpp107 auto& dm = DeviceMapper::Instance(); in LLVMFuzzerTestOneInput()
118 vector<DeviceMapper::TargetInfo> targets; in LLVMFuzzerTestOneInput()
131 EXPECT_EQ(DeviceMapper::GetTargetType(targets[0].spec), std::string{"linear"}); in LLVMFuzzerTestOneInput()
132 EXPECT_EQ(DeviceMapper::GetTargetType(targets[1].spec), std::string{"linear"}); in LLVMFuzzerTestOneInput()
Dtest_util.h40 : dm_(DeviceMapper::Instance()), name_(name), valid_(false) { in TempDevice()
74 DeviceMapper& dm_;
Ddm_target.cpp180 DeviceMapper& dm = DeviceMapper::Instance(); in ReportsOverflow()
/system/core/fs_mgr/libdm/include/libdm/
Ddm.h52 class DeviceMapper final {
203 static DeviceMapper& Instance();
205 ~DeviceMapper() { in ~DeviceMapper()
261 DeviceMapper();
265 DeviceMapper(const DeviceMapper&) = delete;
266 DeviceMapper& operator=(const DeviceMapper&) = delete;
267 DeviceMapper& operator=(DeviceMapper&&) = delete;
268 DeviceMapper(DeviceMapper&&) = delete;
/system/core/fs_mgr/tools/
Ddmctl.cpp43 using DmBlockDevice = ::android::dm::DeviceMapper::DmBlockDevice;
252 DeviceMapper& dm = DeviceMapper::Instance(); in DmCreateCmdHandler()
267 DeviceMapper& dm = DeviceMapper::Instance(); in DmDeleteCmdHandler()
289 DeviceMapper& dm = DeviceMapper::Instance(); in DmReplaceCmdHandler()
297 static int DmListTargets(DeviceMapper& dm, [[maybe_unused]] int argc, in DmListTargets()
319 static int DmListDevices(DeviceMapper& dm, int argc, char** argv) { in DmListDevices()
336 std::vector<DeviceMapper::TargetInfo> table; in DmListDevices()
361 static const std::map<std::string, std::function<int(DeviceMapper&, int, char**)>> listmap = {
372 DeviceMapper& dm = DeviceMapper::Instance(); in DmListCmdHandler()
392 DeviceMapper& dm = DeviceMapper::Instance(); in GetPathCmdHandler()
[all …]
/system/vold/
DDevmapper.cpp46 auto& dm = DeviceMapper::Instance(); in create()
67 auto& dm = DeviceMapper::Instance(); in destroy()
82 auto& dm = DeviceMapper::Instance(); in destroyAll()
83 std::vector<DeviceMapper::DmBlockDevice> devices; in destroyAll()
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp49 using DeviceMapper = android::dm::DeviceMapper; typedef
243 DeviceMapper& dm = DeviceMapper::Instance(); in CreateLogicalPartition()
263 DeviceMapper& dm = DeviceMapper::Instance(); in UnmapDevice()
Dfs_mgr.cpp106 using android::dm::DeviceMapper;
663 DeviceMapper& dm = DeviceMapper::Instance(); in SetReadAheadSize()
1087 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_update_logical_partition()
1151 DeviceMapper& dm = DeviceMapper::Instance(); in Revert()
1209 DeviceMapper& dm = DeviceMapper::Instance(); in UpdateCheckpointPartition()
1281 DeviceMapper& dm = DeviceMapper::Instance(); in WrapUserdata()
1749 DeviceMapper& dm = DeviceMapper::Instance(); in UnwindDmDeviceStack()
1846 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_remount_userdata_into_checkpointing()
2166 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_is_verity_enabled()
2174 std::vector<DeviceMapper::TargetInfo> table; in fs_mgr_is_verity_enabled()
[all …]
Dfs_mgr_verity.cpp255 static int load_verity_table(android::dm::DeviceMapper& dm, const std::string& name, in load_verity_table()
391 android::dm::DeviceMapper& dm = android::dm::DeviceMapper::Instance(); in fs_mgr_setup_verity()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp55 using android::dm::DeviceMapper;
113 std::string GetLinearBaseDeviceString(const DeviceMapper::TargetInfo& target) { in GetLinearBaseDeviceString()
120 std::vector<std::string> GetSnapshotBaseDeviceStrings(const DeviceMapper::TargetInfo& target) { in GetSnapshotBaseDeviceStrings()
138 std::vector<DeviceMapper::TargetInfo> GetTableInfoIfExists(const std::string& dev_name) { in GetTableInfoIfExists()
139 auto& dm = DeviceMapper::Instance(); in GetTableInfoIfExists()
140 std::vector<DeviceMapper::TargetInfo> table; in GetTableInfoIfExists()
173 auto& dm = DeviceMapper::Instance(); in CheckDeleteDeviceMapperTree()
198 std::vector<DeviceMapper::DmBlockDevice> devices; in CheckDeleteDeviceMapperTree()
212 auto& dm = DeviceMapper::Instance(); in CheckCleanupDeviceMapperDevices()
213 std::vector<DeviceMapper::DmBlockDevice> devices; in CheckCleanupDeviceMapperDevices()
Dutility.h60 AutoUnmapDevice(android::dm::DeviceMapper* dm, const std::string& name) in AutoUnmapDevice()
67 android::dm::DeviceMapper* dm_ = nullptr;
Dsnapshot.cpp57 using android::dm::DeviceMapper;
405 auto& dm = DeviceMapper::Instance(); in MapDmUserCow()
493 auto& dm = DeviceMapper::Instance(); in MapSnapshot()
655 auto& dm = DeviceMapper::Instance(); in InitiateMerge()
800 auto& dm = DeviceMapper::Instance(); in RewriteSnapshotDeviceTable()
802 std::vector<DeviceMapper::TargetInfo> old_targets; in RewriteSnapshotDeviceTable()
807 if (old_targets.size() != 1 || DeviceMapper::GetTargetType(old_targets[0].spec) != "snapshot") { in RewriteSnapshotDeviceTable()
835 DeviceMapper::TargetInfo* target) { in GetSingleTarget()
836 auto& dm = DeviceMapper::Instance(); in GetSingleTarget()
841 std::vector<DeviceMapper::TargetInfo> targets; in GetSingleTarget()
[all …]
Dpower_test.cpp43 using android::dm::DeviceMapper;
100 DeviceMapper& dm_;
107 PowerTest::PowerTest() : dm_(DeviceMapper::Instance()) {} in PowerTest()
362 std::vector<DeviceMapper::TargetInfo> targets; in GetMergeStatus()
Dcow_snapuserd_test.cpp56 : dm_(DeviceMapper::Instance()), name_(name), valid_(false) { in TempDevice()
90 DeviceMapper& dm_;
687 DeviceMapper& dm = DeviceMapper::Instance(); in StartMerge()
693 DeviceMapper& dm = DeviceMapper::Instance(); in MergeImpl()
696 vector<DeviceMapper::TargetInfo> status; in MergeImpl()
Dsnapshot_test.cpp57 using android::dm::DeviceMapper;
90 SnapshotTest() : dm_(DeviceMapper::Instance()) {} in SnapshotTest()
418 DeviceMapper& dm_;
546 DeviceMapper::TargetInfo target; in TEST_F()
548 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot-merge"); in TEST_F()
594 DeviceMapper::TargetInfo target; in TEST_F()
596 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot"); in TEST_F()
621 DeviceMapper::TargetInfo target; in TEST_F()
1273 DeviceMapper::TargetInfo target; in TEST_F()
1275 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot-merge"); in TEST_F()
[all …]
/system/core/fs_mgr/libfs_avb/
Dfs_avb_util.cpp53 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in LoadAndVerifyVbmeta()
Davb_ops.cpp160 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in GetLogicalPath()
Dfs_avb.cpp509 android::dm::DeviceMapper& dm = android::dm::DeviceMapper::Instance(); in TearDownAvbHashtree()
/system/vold/model/
DPrivateVolume.cpp73 auto& dm = dm::DeviceMapper::Instance(); in doCreate()
101 auto& dm = dm::DeviceMapper::Instance(); in doDestroy()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp42 using android::dm::DeviceMapper;
122 auto& dm = DeviceMapper::Instance(); in IsImageMapped()
421 auto& dm = DeviceMapper::Instance(); in MapWithLoopDeviceList()
577 auto& dm = DeviceMapper::Instance(); in MapImageWithDeviceMapper()
593 auto& dm = DeviceMapper::Instance(); in UnmapImageDevice()
712 auto& dm = DeviceMapper::Instance(); in GetMappedImageDevice()
Dfiemap_writer.cpp66 static bool ValidateDmTarget(const DeviceMapper::TargetInfo& target) { in ValidateDmTarget()
73 auto target_type = DeviceMapper::GetTargetType(entry); in ValidateDmTarget()
108 auto& dm = DeviceMapper::Instance(); in DeviceMapperStackPop()
109 std::vector<DeviceMapper::TargetInfo> table; in DeviceMapperStackPop()
/system/core/init/
Dmount_handler.cpp51 auto& dm = dm::DeviceMapper::Instance(); in ParseMount()
/system/gsid/
Dgsi_service.cpp68 using android::dm::DeviceMapper;
460 auto& dm = DeviceMapper::Instance(); in dumpDeviceMapperDevices()
462 std::vector<DeviceMapper::DmBlockDevice> devices; in dumpDeviceMapperDevices()
472 std::vector<DeviceMapper::TargetInfo> table; in dumpDeviceMapperDevices()
479 auto target_type = DeviceMapper::GetTargetType(spec); in dumpDeviceMapperDevices()

12