Home
last modified time | relevance | path

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

/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/vold/
DMetadataCrypt.cpp138 static bool create_crypto_blk_dev(const std::string& dm_name, const std::string& blk_device, in create_crypto_blk_dev() argument
173 if (!dm.CreateDevice(dm_name, table, crypto_blkdev, std::chrono::seconds(5))) { in create_crypto_blk_dev()
174 PLOG(ERROR) << "Could not create default-key device " << dm_name; in create_crypto_blk_dev()
/system/core/fs_mgr/libdm/
Ddm.cpp591 std::string dm_name; in GetDmDeviceNameByPath() local
592 if (!android::base::ReadFileToString(dm_name_file, &dm_name)) { in GetDmDeviceNameByPath()
596 dm_name = android::base::Trim(dm_name); in GetDmDeviceNameByPath()
597 return dm_name; in GetDmDeviceNameByPath()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h563 MergeFailureCode RewriteSnapshotDeviceTable(const std::string& dm_name);
584 bool QuerySnapshotStatus(const std::string& dm_name, std::string* target_type,
586 bool IsSnapshotDevice(const std::string& dm_name, TargetInfo* target = nullptr);
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp834 static bool GetSingleTarget(const std::string& dm_name, TableQuery query, in GetSingleTarget() argument
837 if (dm.GetState(dm_name) == DmDeviceState::INVALID) { in GetSingleTarget()
844 result = dm.GetTableStatus(dm_name, &targets); in GetSingleTarget()
846 result = dm.GetTableInfo(dm_name, &targets); in GetSingleTarget()
849 LOG(ERROR) << "Could not query device: " << dm_name; in GetSingleTarget()
860 bool SnapshotManager::IsSnapshotDevice(const std::string& dm_name, TargetInfo* target) { in IsSnapshotDevice() argument
862 if (!GetSingleTarget(dm_name, TableQuery::Status, &snap_target)) { in IsSnapshotDevice()
875 bool SnapshotManager::QuerySnapshotStatus(const std::string& dm_name, std::string* target_type, in QuerySnapshotStatus() argument
878 if (!IsSnapshotDevice(dm_name, &target)) { in QuerySnapshotStatus()
879 LOG(ERROR) << "Device " << dm_name << " is not a snapshot or snapshot-merge device"; in QuerySnapshotStatus()
[all …]
/system/apex/apexd/
Dapexd.cpp3549 std::string_view dm_name(dm_device.name()); in ComputePackageIdMinor() local
3551 if (!ConsumePrefix(&dm_name, apex.GetManifest().name())) { in ComputePackageIdMinor()
3555 auto pos = dm_name.find_last_of('_'); in ComputePackageIdMinor()
3560 if (!ParseUint(std::string(dm_name.substr(pos + 1)), &minor)) { in ComputePackageIdMinor()