Searched refs:dm_name (Results 1 – 6 of 6) sorted by relevance
/system/core/fs_mgr/libsnapshot/ |
D | snapshot.cpp | 689 auto dm_name = GetSnapshotDeviceName(name, status); in SwitchSnapshotToMerge() local 690 if (!RewriteSnapshotDeviceTable(dm_name)) { in SwitchSnapshotToMerge() 697 if (!QuerySnapshotStatus(dm_name, nullptr, &dm_status)) { in SwitchSnapshotToMerge() 698 LOG(ERROR) << "Could not query merge status for snapshot: " << dm_name; in SwitchSnapshotToMerge() 708 bool SnapshotManager::RewriteSnapshotDeviceTable(const std::string& dm_name) { in RewriteSnapshotDeviceTable() argument 712 if (!dm.GetTableInfo(dm_name, &old_targets)) { in RewriteSnapshotDeviceTable() 713 LOG(ERROR) << "Could not read snapshot device table: " << dm_name; in RewriteSnapshotDeviceTable() 717 LOG(ERROR) << "Unexpected device-mapper table for snapshot: " << dm_name; in RewriteSnapshotDeviceTable() 723 LOG(ERROR) << "Could not derive underlying devices for snapshot: " << dm_name; in RewriteSnapshotDeviceTable() 730 if (!dm.LoadTableAndActivate(dm_name, table)) { in RewriteSnapshotDeviceTable() [all …]
|
D | snapshot_test.cpp | 525 auto dm_name = init->GetSnapshotDeviceName("test_partition_b", status); in TEST_F() local 526 ASSERT_TRUE(init->IsSnapshotDevice(dm_name, &target)); in TEST_F() 553 auto dm_name = init->GetSnapshotDeviceName("test_partition_b", status); in TEST_F() local 554 ASSERT_FALSE(init->IsSnapshotDevice(dm_name, &target)); in TEST_F()
|
/system/vold/ |
D | MetadataCrypt.cpp | 183 static bool create_crypto_blk_dev(const std::string& dm_name, const std::string& blk_device, in create_crypto_blk_dev() argument 219 if (dm.CreateDevice(dm_name, table)) { in create_crypto_blk_dev() 223 PLOG(ERROR) << "Could not create default-key device " << dm_name; in create_crypto_blk_dev() 230 if (!dm.GetDmDevicePathByName(dm_name, crypto_blkdev)) { in create_crypto_blk_dev() 231 LOG(ERROR) << "Cannot retrieve default-key device status " << dm_name; in create_crypto_blk_dev()
|
/system/core/fs_mgr/libfiemap/ |
D | fiemap_writer.cpp | 101 std::string dm_name; in DeviceMapperStackPop() local 102 if (!android::base::ReadFileToString(dm_name_file, &dm_name)) { in DeviceMapperStackPop() 106 dm_name = android::base::Trim(dm_name); in DeviceMapperStackPop() 110 if (!dm.GetTableInfo(dm_name, &table)) { in DeviceMapperStackPop() 111 LOG(ERROR) << "Could not read device-mapper table for " << dm_name << " at " << bdev; in DeviceMapperStackPop() 127 LOG(INFO) << "Stopping at complex table for " << dm_name << " at " << bdev; in DeviceMapperStackPop()
|
/system/core/fs_mgr/libdm/ |
D | dm.cpp | 552 std::string dm_name; in GetDmDeviceNameByPath() local 553 if (!android::base::ReadFileToString(dm_name_file, &dm_name)) { in GetDmDeviceNameByPath() 557 dm_name = android::base::Trim(dm_name); in GetDmDeviceNameByPath() 558 return dm_name; in GetDmDeviceNameByPath()
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapshot.h | 416 bool RewriteSnapshotDeviceTable(const std::string& dm_name); 436 bool QuerySnapshotStatus(const std::string& dm_name, std::string* target_type, 438 bool IsSnapshotDevice(const std::string& dm_name, TargetInfo* target = nullptr);
|