/aosp14/system/core/fs_mgr/libdm/ |
H A D | test_util.h | 40 : dm_(DeviceMapper::Instance()), name_(name), valid_(false) { in TempDevice() 41 valid_ = dm_.CreateDevice(name, table, &path_, std::chrono::seconds(5)); in TempDevice() 44 : dm_(other.dm_), name_(other.name_), path_(other.path_), valid_(other.valid_) { in TempDevice() 49 dm_.DeleteDevice(name_); in ~TempDevice() 57 return dm_.DeleteDevice(name_); in Destroy() 74 DeviceMapper& dm_;
|
/aosp14/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/ |
H A D | test_helpers.h | 103 if (dm_) { in GetDeviceMapper() 104 return *dm_; in GetDeviceMapper() 117 void set_dm(android::dm::IDeviceMapper* dm) { dm_ = dm; } in set_dm() 128 android::dm::IDeviceMapper* dm_ = nullptr; variable
|
/aosp14/system/core/fs_mgr/libsnapshot/ |
H A D | utility.h | 61 : AutoDevice(name), dm_(dm) {} in AutoUnmapDevice() 66 android::dm::IDeviceMapper* dm_ = nullptr; member
|
H A D | snapshot.cpp | 508 if (!dm_.CreateDevice(name, table, path, timeout_ms)) { in MapDmUserCow() 622 if (!dm_.CreateDevice(name, table, dev_path, timeout_ms)) { in MapSnapshot() 925 if (!dm_.GetTableInfo(name, &old_targets)) { in RewriteSnapshotDeviceTable() 943 if (!dm_.LoadTableAndActivate(name, table)) { in RewriteSnapshotDeviceTable() 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() 1619 if (!dm_.LoadTableAndActivate(name, table)) { in CollapseSnapshotDevice() 4020 if (!dm_.GetTableStatus(snapshot, &targets)) { in EnsureNoOverflowSnapshot() 4315 if (dm_.DeleteDeviceIfExists(name)) { in DeleteDeviceIfExists() [all …]
|
H A D | utility.cpp | 68 if (!dm_->DeleteDeviceIfExists(name_)) { in ~AutoUnmapDevice()
|
H A D | snapshot_test.cpp | 108 SnapshotTest() : dm_(DeviceMapper::Instance()) {} in SnapshotTest() 500 if (!dm_.DeleteDeviceIfExists("test_partition_b")) { in SimulateReboot() 503 if (!dm_.DeleteDeviceIfExists("test_partition_b-base")) { in SimulateReboot() 528 DeviceMapper& dm_; member in android::snapshot::SnapshotTest 1082 if (!dm_.GetDmDevicePathByName(name, &path)) { in IsPartitionUnchanged() 1114 if (!dm_.DeleteDeviceIfExists(name + "_a"s)) { in UnmapAll()
|
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
H A D | snapuserd_test.cpp | 62 : dm_(DeviceMapper::Instance()), name_(name), valid_(false) { in Tempdevice() 63 valid_ = dm_.CreateDevice(name, table, &path_, std::chrono::seconds(5)); in Tempdevice() 66 : dm_(other.dm_), name_(other.name_), path_(other.path_), valid_(other.valid_) { in Tempdevice() 71 dm_.DeleteDevice(name_); in ~Tempdevice() 79 return dm_.DeleteDevice(name_); in Destroy() 96 DeviceMapper& dm_; member in android::snapshot::Tempdevice
|
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/ |
H A D | cow_snapuserd_test.cpp | 57 : dm_(DeviceMapper::Instance()), name_(name), valid_(false) { in TempDevice() 58 valid_ = dm_.CreateDevice(name, table, &path_, std::chrono::seconds(5)); in TempDevice() 61 : dm_(other.dm_), name_(other.name_), path_(other.path_), valid_(other.valid_) { in TempDevice() 66 dm_.DeleteDevice(name_); in ~TempDevice() 74 return dm_.DeleteDevice(name_); in Destroy() 91 DeviceMapper& dm_; member in android::snapshot::TempDevice
|
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
H A D | snapshot.h | 831 android::dm::IDeviceMapper& dm_; variable
|