Home
last modified time | relevance | path

Searched refs:dm_name (Results 1 – 6 of 6) sorted by relevance

/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp688 auto dm_name = GetSnapshotDeviceName(name, status); in SwitchSnapshotToMerge() local
689 if (!RewriteSnapshotDeviceTable(dm_name)) { in SwitchSnapshotToMerge()
696 if (!QuerySnapshotStatus(dm_name, nullptr, &dm_status)) { in SwitchSnapshotToMerge()
697 LOG(ERROR) << "Could not query merge status for snapshot: " << dm_name; in SwitchSnapshotToMerge()
707 bool SnapshotManager::RewriteSnapshotDeviceTable(const std::string& dm_name) { in RewriteSnapshotDeviceTable() argument
711 if (!dm.GetTableInfo(dm_name, &old_targets)) { in RewriteSnapshotDeviceTable()
712 LOG(ERROR) << "Could not read snapshot device table: " << dm_name; in RewriteSnapshotDeviceTable()
716 LOG(ERROR) << "Unexpected device-mapper table for snapshot: " << dm_name; in RewriteSnapshotDeviceTable()
722 LOG(ERROR) << "Could not derive underlying devices for snapshot: " << dm_name; in RewriteSnapshotDeviceTable()
729 if (!dm.LoadTableAndActivate(dm_name, table)) { in RewriteSnapshotDeviceTable()
[all …]
Dsnapshot_test.cpp533 auto dm_name = init->GetSnapshotDeviceName("test_partition_b", status); in TEST_F() local
534 ASSERT_TRUE(init->IsSnapshotDevice(dm_name, &target)); in TEST_F()
561 auto dm_name = init->GetSnapshotDeviceName("test_partition_b", status); in TEST_F() local
562 ASSERT_FALSE(init->IsSnapshotDevice(dm_name, &target)); in TEST_F()
/system/vold/
DMetadataCrypt.cpp183 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/
Dfiemap_writer.cpp101 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/
Ddm.cpp552 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/
Dsnapshot.h456 bool RewriteSnapshotDeviceTable(const std::string& dm_name);
476 bool QuerySnapshotStatus(const std::string& dm_name, std::string* target_type,
478 bool IsSnapshotDevice(const std::string& dm_name, TargetInfo* target = nullptr);