/system/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 52 class DeviceMapper final { 190 static DeviceMapper& Instance(); 192 ~DeviceMapper() { in ~DeviceMapper() 248 DeviceMapper(); 252 DeviceMapper(const DeviceMapper&) = delete; 253 DeviceMapper& operator=(const DeviceMapper&) = delete; 254 DeviceMapper& operator=(DeviceMapper&&) = delete; 255 DeviceMapper(DeviceMapper&&) = delete;
|
/system/core/fs_mgr/libdm/ |
D | dm.cpp | 43 DeviceMapper::DeviceMapper() : fd_(-1) { in DeviceMapper() function in android::dm::DeviceMapper 50 DeviceMapper& DeviceMapper::Instance() { in Instance() 51 static DeviceMapper instance; in Instance() 56 bool DeviceMapper::CreateDevice(const std::string& name, const std::string& uuid) { in CreateDevice() 86 bool DeviceMapper::DeleteDeviceIfExists(const std::string& name, in DeleteDeviceIfExists() 94 bool DeviceMapper::DeleteDeviceIfExists(const std::string& name) { in DeleteDeviceIfExists() 98 bool DeviceMapper::DeleteDevice(const std::string& name, in DeleteDevice() 130 bool DeviceMapper::DeleteDevice(const std::string& name) { in DeleteDevice() 148 bool DeviceMapper::CreateDevice(const std::string& name, const DmTable& table, std::string* path, in CreateDevice() 186 bool DeviceMapper::GetDeviceUniquePath(const std::string& name, std::string* path) { in GetDeviceUniquePath() [all …]
|
D | dm_test.cpp | 47 DeviceMapper& dm = DeviceMapper::Instance(); in TEST() 80 auto& dm = DeviceMapper::Instance(); in TEST() 106 vector<DeviceMapper::TargetInfo> targets; in TEST() 119 EXPECT_EQ(DeviceMapper::GetTargetType(targets[0].spec), std::string{"linear"}); in TEST() 120 EXPECT_EQ(DeviceMapper::GetTargetType(targets[1].spec), std::string{"linear"}); in TEST() 143 auto& dm = DeviceMapper::Instance(); in TEST() 146 vector<DeviceMapper::TargetInfo> targets; in TEST() 288 DeviceMapper& dm = DeviceMapper::Instance(); in MergeImpl() 292 vector<DeviceMapper::TargetInfo> status; in MergeImpl() 314 DeviceMapper& dm = DeviceMapper::Instance(); in CheckSnapshotAvailability() [all …]
|
D | dm_linear_fuzzer.cpp | 107 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()
|
D | test_util.h | 40 : dm_(DeviceMapper::Instance()), name_(name), valid_(false) { in TempDevice() 74 DeviceMapper& dm_;
|
D | dm_target.cpp | 178 DeviceMapper& dm = DeviceMapper::Instance(); in ReportsOverflow()
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 42 using DmBlockDevice = ::android::dm::DeviceMapper::DmBlockDevice; 244 DeviceMapper& dm = DeviceMapper::Instance(); in DmCreateCmdHandler() 259 DeviceMapper& dm = DeviceMapper::Instance(); in DmDeleteCmdHandler() 281 DeviceMapper& dm = DeviceMapper::Instance(); in DmReplaceCmdHandler() 289 static int DmListTargets(DeviceMapper& dm, [[maybe_unused]] int argc, in DmListTargets() 311 static int DmListDevices(DeviceMapper& dm, int argc, char** argv) { in DmListDevices() 328 std::vector<DeviceMapper::TargetInfo> table; in DmListDevices() 353 static const std::map<std::string, std::function<int(DeviceMapper&, int, char**)>> listmap = { 364 DeviceMapper& dm = DeviceMapper::Instance(); in DmListCmdHandler() 384 DeviceMapper& dm = DeviceMapper::Instance(); in GetPathCmdHandler() [all …]
|
/system/vold/ |
D | Devmapper.cpp | 46 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/ |
D | fs_mgr_dm_linear.cpp | 49 using DeviceMapper = android::dm::DeviceMapper; typedef 243 DeviceMapper& dm = DeviceMapper::Instance(); in CreateLogicalPartition() 263 DeviceMapper& dm = DeviceMapper::Instance(); in UnmapDevice()
|
D | fs_mgr.cpp | 106 using android::dm::DeviceMapper; 1031 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_update_logical_partition() 1095 DeviceMapper& dm = DeviceMapper::Instance(); in Revert() 1154 DeviceMapper& dm = DeviceMapper::Instance(); in UpdateCheckpointPartition() 1226 DeviceMapper& dm = DeviceMapper::Instance(); in WrapUserdata() 1661 DeviceMapper& dm = DeviceMapper::Instance(); in UnwindDmDeviceStack() 1758 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_remount_userdata_into_checkpointing() 2079 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_is_verity_enabled() 2087 std::vector<DeviceMapper::TargetInfo> table; in fs_mgr_is_verity_enabled() 2109 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_verity_is_check_at_most_once() [all …]
|
D | fs_mgr_verity.cpp | 255 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/ |
D | snapshot_fuzz_utils.cpp | 55 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()
|
D | utility.h | 60 AutoUnmapDevice(android::dm::DeviceMapper* dm, const std::string& name) in AutoUnmapDevice() 67 android::dm::DeviceMapper* dm_ = nullptr;
|
D | snapshot.cpp | 51 using android::dm::DeviceMapper; 412 auto& dm = DeviceMapper::Instance(); in MapSnapshot() 504 auto& dm = DeviceMapper::Instance(); in UnmapSnapshot() 581 auto& dm = DeviceMapper::Instance(); in InitiateMerge() 708 auto& dm = DeviceMapper::Instance(); in RewriteSnapshotDeviceTable() 710 std::vector<DeviceMapper::TargetInfo> old_targets; in RewriteSnapshotDeviceTable() 715 if (old_targets.size() != 1 || DeviceMapper::GetTargetType(old_targets[0].spec) != "snapshot") { in RewriteSnapshotDeviceTable() 743 DeviceMapper::TargetInfo* target) { in GetSingleTarget() 744 auto& dm = DeviceMapper::Instance(); in GetSingleTarget() 749 std::vector<DeviceMapper::TargetInfo> targets; in GetSingleTarget() [all …]
|
D | power_test.cpp | 43 using android::dm::DeviceMapper; 100 DeviceMapper& dm_; 107 PowerTest::PowerTest() : dm_(DeviceMapper::Instance()) {} in PowerTest() 362 std::vector<DeviceMapper::TargetInfo> targets; in GetMergeStatus()
|
D | snapshot_test.cpp | 53 using android::dm::DeviceMapper; 86 SnapshotTest() : dm_(DeviceMapper::Instance()) { in SnapshotTest() 345 DeviceMapper& dm_; 476 DeviceMapper::TargetInfo target; in TEST_F() 478 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot"); in TEST_F() 491 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot-merge"); in TEST_F() 532 DeviceMapper::TargetInfo target; in TEST_F() 535 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot"); in TEST_F() 560 DeviceMapper::TargetInfo target; in TEST_F() 1657 std::vector<android::dm::DeviceMapper::TargetInfo> table; in TEST_F() [all …]
|
/system/core/fs_mgr/libfs_avb/ |
D | fs_avb_util.cpp | 53 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in LoadAndVerifyVbmeta()
|
D | avb_ops.cpp | 160 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in GetLogicalPath()
|
D | fs_avb.cpp | 509 android::dm::DeviceMapper& dm = android::dm::DeviceMapper::Instance(); in TearDownAvbHashtree()
|
/system/vold/model/ |
D | PrivateVolume.cpp | 71 auto& dm = dm::DeviceMapper::Instance(); in doCreate() 88 auto& dm = dm::DeviceMapper::Instance(); in doDestroy()
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 40 using android::dm::DeviceMapper; 108 auto& dm = DeviceMapper::Instance(); in IsImageMapped() 407 auto& dm = DeviceMapper::Instance(); in MapWithLoopDeviceList() 561 auto& dm = DeviceMapper::Instance(); in MapImageWithDeviceMapper() 577 auto& dm = DeviceMapper::Instance(); in UnmapImageDevice() 685 auto& dm = DeviceMapper::Instance(); in GetMappedImageDevice()
|
D | fiemap_writer.cpp | 66 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/ |
D | mount_handler.cpp | 51 auto& dm = dm::DeviceMapper::Instance(); in ParseMount()
|
/system/update_engine/ |
D | dynamic_partition_control_android.cc | 51 using android::dm::DeviceMapper; 233 if (DeviceMapper::Instance().GetState(target_partition_name) != in UnmapPartitionOnDeviceMapper() 286 return DeviceMapper::Instance().GetState(name); in GetState() 291 return DeviceMapper::Instance().GetDmDevicePathByName(name, path); in GetDmDevicePathByName()
|
/system/gsid/ |
D | gsi_service.cpp | 62 using android::dm::DeviceMapper; 420 auto& dm = DeviceMapper::Instance(); in dumpDeviceMapperDevices() 422 std::vector<DeviceMapper::DmBlockDevice> devices; in dumpDeviceMapperDevices() 432 std::vector<DeviceMapper::TargetInfo> table; in dumpDeviceMapperDevices() 439 auto target_type = DeviceMapper::GetTargetType(spec); in dumpDeviceMapperDevices()
|