Searched refs:dm_name (Results 1 – 6 of 6) sorted by relevance
/system/vold/ |
D | MetadataCrypt.cpp | 156 static bool create_crypto_blk_dev(const std::string& dm_name, const std::string& blk_device, in create_crypto_blk_dev() argument 191 if (dm_name == kDmNameUserdata && dm.GetState(dm_name) == DmDeviceState::SUSPENDED) { in create_crypto_blk_dev() 193 if (!dm.LoadTableAndActivate(dm_name, table)) { in create_crypto_blk_dev() 194 LOG(ERROR) << "Failed to populate default-key device " << dm_name; in create_crypto_blk_dev() 197 if (!dm.WaitForDevice(dm_name, 20s, crypto_blkdev)) { in create_crypto_blk_dev() 198 LOG(ERROR) << "Failed to wait for default-key device " << dm_name; in create_crypto_blk_dev() 201 } else if (!dm.CreateDevice(dm_name, table, crypto_blkdev, 5s)) { in create_crypto_blk_dev() 202 LOG(ERROR) << "Could not create default-key device " << 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 | 633 std::string dm_name; in GetDmDeviceNameByPath() local 634 if (!android::base::ReadFileToString(dm_name_file, &dm_name)) { in GetDmDeviceNameByPath() 638 dm_name = android::base::Trim(dm_name); in GetDmDeviceNameByPath() 639 return dm_name; in GetDmDeviceNameByPath()
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapshot.h | 600 MergeFailureCode RewriteSnapshotDeviceTable(const std::string& dm_name); 621 bool QuerySnapshotStatus(const std::string& dm_name, std::string* target_type, 623 bool IsSnapshotDevice(const std::string& dm_name, TargetInfo* target = nullptr); 657 bool GetSingleTarget(const std::string& dm_name, TableQuery query,
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot.cpp | 951 bool SnapshotManager::GetSingleTarget(const std::string& dm_name, TableQuery query, in GetSingleTarget() argument 953 if (dm_.GetState(dm_name) == DmDeviceState::INVALID) { in GetSingleTarget() 960 result = dm_.GetTableStatus(dm_name, &targets); in GetSingleTarget() 962 result = dm_.GetTableInfo(dm_name, &targets); in GetSingleTarget() 965 LOG(ERROR) << "Could not query device: " << dm_name; in GetSingleTarget() 976 bool SnapshotManager::IsSnapshotDevice(const std::string& dm_name, TargetInfo* target) { in IsSnapshotDevice() argument 978 if (!GetSingleTarget(dm_name, TableQuery::Status, &snap_target)) { in IsSnapshotDevice() 1020 bool SnapshotManager::QuerySnapshotStatus(const std::string& dm_name, std::string* target_type, in QuerySnapshotStatus() argument 1023 if (!IsSnapshotDevice(dm_name, &target)) { in QuerySnapshotStatus() 1024 LOG(ERROR) << "Device " << dm_name << " is not a snapshot or snapshot-merge device"; in QuerySnapshotStatus() [all …]
|
/system/apex/apexd/ |
D | apexd.cpp | 3952 std::string_view dm_name(dm_device.name()); in ComputePackageIdMinor() local 3954 if (!ConsumePrefix(&dm_name, apex.GetManifest().name())) { in ComputePackageIdMinor() 3958 auto pos = dm_name.find_last_of('_'); in ComputePackageIdMinor() 3963 if (!ParseUint(std::string(dm_name.substr(pos + 1)), &minor)) { in ComputePackageIdMinor()
|