/system/vold/ |
D | Devmapper.cpp | 40 using namespace android::dm; 46 auto& dm = DeviceMapper::Instance(); in create() local 52 if (!dm.CreateDevice(name_string, table)) { in create() 58 if (!dm.GetDmDevicePathByName(name_string, &path)) { in create() 67 auto& dm = DeviceMapper::Instance(); in destroy() local 70 if (!dm.DeleteDevice(name_string)) { in destroy() 82 auto& dm = DeviceMapper::Instance(); in destroyAll() local 84 if (!dm.GetAvailableDevices(&devices)) { in destroyAll() 92 if (!dm.DeleteDevice(device.name())) { in destroyAll()
|
/system/core/fs_mgr/libdm/ |
D | dm_test.cpp | 41 using namespace android::dm; 47 DeviceMapper& dm = DeviceMapper::Instance(); in TEST() local 48 ASSERT_TRUE(dm.GetTargetByName("linear", &info)); in TEST() 80 auto& dm = DeviceMapper::Instance(); in TEST() local 83 ASSERT_TRUE(dm.GetDeviceNumber(dev.name(), &dev_number)); in TEST() 87 ASSERT_TRUE(dm.GetDeviceString(dev.name(), &dev_string)); in TEST() 107 ASSERT_TRUE(dm.GetTableStatus(dev.name(), &targets)); in TEST() 143 auto& dm = DeviceMapper::Instance(); in TEST() local 147 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::ACTIVE); in TEST() 149 ASSERT_TRUE(dm.ChangeState(dev.name(), DmDeviceState::SUSPENDED)); in TEST() [all …]
|
D | dm_linear_fuzzer.cpp | 32 using namespace android::dm; 107 auto& dm = DeviceMapper::Instance(); in LLVMFuzzerTestOneInput() local 110 ASSERT_TRUE(dm.GetDeviceNumber(dev.name(), &dev_number)); in LLVMFuzzerTestOneInput() 114 ASSERT_TRUE(dm.GetDeviceString(dev.name(), &dev_string)); in LLVMFuzzerTestOneInput() 119 ASSERT_TRUE(dm.GetTableStatus(dev.name(), &targets)); in LLVMFuzzerTestOneInput()
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | update_verifier.te | 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between 17 # dm-X and system/vendor partitions.
|
/system/sepolicy/public/ |
D | update_verifier.te | 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between 17 # dm-X and system/vendor partitions.
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | update_verifier.te | 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between 17 # dm-X and system/vendor partitions.
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 41 using namespace android::dm; 42 using DmBlockDevice = ::android::dm::DeviceMapper::DmBlockDevice; 244 DeviceMapper& dm = DeviceMapper::Instance(); in DmCreateCmdHandler() local 245 if (!dm.CreateDevice(name, table)) { in DmCreateCmdHandler() 259 DeviceMapper& dm = DeviceMapper::Instance(); in DmDeleteCmdHandler() local 260 if (!dm.DeleteDevice(name)) { in DmDeleteCmdHandler() 281 DeviceMapper& dm = DeviceMapper::Instance(); in DmReplaceCmdHandler() local 282 if (!dm.LoadTableAndActivate(name, table)) { in DmReplaceCmdHandler() 289 static int DmListTargets(DeviceMapper& dm, [[maybe_unused]] int argc, in DmListTargets() argument 292 if (!dm.GetAvailableTargets(&targets)) { in DmListTargets() [all …]
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | update_verifier.te | 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between 17 # dm-X and system/vendor partitions.
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 49 using DeviceMapper = android::dm::DeviceMapper; 50 using DmTable = android::dm::DmTable; 51 using DmTarget = android::dm::DmTarget; 52 using DmTargetZero = android::dm::DmTargetZero; 53 using DmTargetLinear = android::dm::DmTargetLinear; 243 DeviceMapper& dm = DeviceMapper::Instance(); in CreateLogicalPartition() local 244 if (!dm.CreateDevice(params.device_name, table, path, params.timeout_ms)) { in CreateLogicalPartition() 263 DeviceMapper& dm = DeviceMapper::Instance(); in UnmapDevice() local 264 if (!dm.DeleteDevice(name)) { in UnmapDevice()
|
D | fs_mgr_verity.cpp | 255 static int load_verity_table(android::dm::DeviceMapper& dm, const std::string& name, in load_verity_table() argument 258 android::dm::DmTable table; in load_verity_table() 267 android::dm::DmTargetVerityString target(0, device_size / 512, buffer); in load_verity_table() 272 if (!dm.CreateDevice(name, table)) { in load_verity_table() 391 android::dm::DeviceMapper& dm = android::dm::DeviceMapper::Instance(); in fs_mgr_setup_verity() local 470 if (load_verity_table(dm, mount_point, verity.data_size, ¶ms, format_verity_table) == 0) { in fs_mgr_setup_verity() 479 … if (load_verity_table(dm, mount_point, verity.data_size, ¶ms, format_verity_table) == 0) { in fs_mgr_setup_verity() 485 if (load_verity_table(dm, mount_point, verity.data_size, ¶ms, format_legacy_verity_table) == in fs_mgr_setup_verity() 495 if (load_verity_table(dm, mount_point, verity.data_size, ¶ms, in fs_mgr_setup_verity() 505 if (!dm.GetDmDevicePathByName(mount_point, &verity_blk_name)) { in fs_mgr_setup_verity() [all …]
|
D | fs_mgr.cpp | 106 using android::dm::DeviceMapper; 107 using android::dm::DmDeviceState; 108 using android::dm::DmTargetLinear; 109 using android::dm::LoopControl; 1031 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_update_logical_partition() local 1033 if (!dm.GetDmDevicePathByName(entry->blk_device, &device_name)) { in fs_mgr_update_logical_partition() 1095 DeviceMapper& dm = DeviceMapper::Instance(); in Revert() local 1096 if (!dm.DeleteDevice("bow")) { in Revert() 1127 android::dm::DmTable table; in UpdateCheckpointPartition() 1129 std::make_unique<android::dm::DmTargetBow>(0, size, entry->blk_device); in UpdateCheckpointPartition() [all …]
|
/system/core/fs_mgr/libfs_avb/ |
D | fs_avb_util.cpp | 53 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in LoadAndVerifyVbmeta() local 54 if (!dm.GetDmDevicePathByName(fstab_entry.blk_device, &device_path)) { in LoadAndVerifyVbmeta()
|
D | avb_ops.cpp | 160 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in GetLogicalPath() local 161 if (!dm.GetDmDevicePathByName(fstab_entry->blk_device, &device_path)) { in GetLogicalPath()
|
D | avb_util.cpp | 55 const std::string& blk_device, android::dm::DmTable* table) { in ConstructVerityTable() 76 android::dm::DmTargetVerity target( in ConstructVerityTable() 95 return table->AddTarget(std::make_unique<android::dm::DmTargetVerity>(target)); in ConstructVerityTable() 100 android::dm::DmTable table; in HashtreeDmVeritySetup() 113 android::dm::DeviceMapper& dm = android::dm::DeviceMapper::Instance(); in HashtreeDmVeritySetup() local 114 if (!dm.CreateDevice(device_name, table, &dev_path, timeout)) { in HashtreeDmVeritySetup()
|
/system/vold/model/ |
D | PrivateVolume.cpp | 71 auto& dm = dm::DeviceMapper::Instance(); in doCreate() local 72 if (!dm.DeleteDeviceIfExists(getId())) { in doCreate() 88 auto& dm = dm::DeviceMapper::Instance(); in doDestroy() local 89 if (!dm.DeleteDevice(getId())) { in doDestroy()
|
/system/bt/bta/ |
D | Android.bp | 7 "dm", 55 "dm/bta_dm_act.cc", 56 "dm/bta_dm_api.cc", 57 "dm/bta_dm_cfg.cc", 58 "dm/bta_dm_ci.cc", 59 "dm/bta_dm_main.cc", 60 "dm/bta_dm_pm.cc",
|
D | BUILD.gn | 36 "dm/bta_dm_act.cc", 37 "dm/bta_dm_api.cc", 38 "dm/bta_dm_cfg.cc", 39 "dm/bta_dm_ci.cc", 40 "dm/bta_dm_main.cc", 41 "dm/bta_dm_pm.cc", 94 "dm",
|
/system/core/fs_mgr/libsnapshot/ |
D | utility.h | 60 AutoUnmapDevice(android::dm::DeviceMapper* dm, const std::string& name) in AutoUnmapDevice() 61 : AutoDevice(name), dm_(dm) {} in AutoUnmapDevice() 67 android::dm::DeviceMapper* dm_ = nullptr;
|
D | snapshot_fuzz_utils.cpp | 55 using android::dm::DeviceMapper; 56 using android::dm::DmTarget; 57 using android::dm::LoopControl; 139 auto& dm = DeviceMapper::Instance(); in GetTableInfoIfExists() local 141 if (!dm.GetTableInfo(dev_name, &table)) { in GetTableInfoIfExists() 173 auto& dm = DeviceMapper::Instance(); in CheckDeleteDeviceMapperTree() local 176 PCHECK(dm.DeleteDeviceIfExists(dev_name)) << dev_name; in CheckDeleteDeviceMapperTree() 196 PCHECK(dm.GetDeviceString(dev_name, &dev_string)); in CheckDeleteDeviceMapperTree() 199 PCHECK(dm.GetAvailableDevices(&devices)); in CheckDeleteDeviceMapperTree() 207 PCHECK(dm.DeleteDeviceIfExists(dev_name)) << dev_name; in CheckDeleteDeviceMapperTree() [all …]
|
D | snapshot.cpp | 51 using android::dm::DeviceMapper; 52 using android::dm::DmDeviceState; 53 using android::dm::DmTable; 54 using android::dm::DmTargetLinear; 55 using android::dm::DmTargetSnapshot; 56 using android::dm::kSectorSize; 57 using android::dm::SnapshotStorageMode; 412 auto& dm = DeviceMapper::Instance(); in MapSnapshot() local 444 if (!dm.CreateDevice(snap_name, table, dev_path, timeout_ms)) { in MapSnapshot() 451 if (!dm.GetDeviceString(snap_name, &snap_dev)) { in MapSnapshot() [all …]
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 40 using android::dm::DeviceMapper; 41 using android::dm::DmDeviceState; 42 using android::dm::DmTable; 43 using android::dm::DmTargetLinear; 44 using android::dm::LoopControl; 108 auto& dm = DeviceMapper::Instance(); in IsImageMapped() local 109 return dm.GetState(image_name) != DmDeviceState::INVALID; in IsImageMapped() 407 auto& dm = DeviceMapper::Instance(); in MapWithLoopDeviceList() local 408 if (!dm.CreateDevice(name, table, path, timeout_ms)) { in MapWithLoopDeviceList() 423 dm.DeleteDevice(name); in MapWithLoopDeviceList() [all …]
|
D | README.md | 42 `dm-crypt` or `dm-default-key` device. This means the underlying device is 43 not marked in use, and we can create new dm-linear devices on top of it. 46 device-mapper device with a `dm-linear` table entry for each extent in the 61 `dm-linear` table entry spanning the length of the device. 67 block device. It could be catastrophic to write to a dm-linear device if the
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | init.te | 34 # Allow init to figure out name of dm-device from it's /dev/block/dm-XX path. 36 # since it potentially requires tearing down dm-devices (e.g. dm-bow, dm-crypto)
|
/system/sepolicy/private/ |
D | init.te | 34 # Allow init to figure out name of dm-device from it's /dev/block/dm-XX path. 36 # since it potentially requires tearing down dm-devices (e.g. dm-bow, dm-crypto)
|
/system/core/init/ |
D | mount_handler.cpp | 51 auto& dm = dm::DeviceMapper::Instance(); in ParseMount() local 53 if (dm.GetDmDevicePathByName("system", &path) || dm.GetDmDevicePathByName("vroot", &path)) { in ParseMount()
|