/system/core/fs_mgr/libdm/ |
D | dm_test.cpp | 46 using namespace android::dm; 64 auto& dm = DeviceMapper::Instance(); in TearDown() local 65 ASSERT_TRUE(dm.DeleteDeviceIfExists(test_name_)); in TearDown() 77 DeviceMapper& dm = DeviceMapper::Instance(); in TEST_F() local 78 ASSERT_TRUE(dm.GetTargetByName("linear", &info)); in TEST_F() 110 auto& dm = DeviceMapper::Instance(); in TEST_F() local 113 ASSERT_TRUE(dm.GetDeviceNumber(dev.name(), &dev_number)); in TEST_F() 117 ASSERT_TRUE(dm.GetDeviceString(dev.name(), &dev_string)); in TEST_F() 137 ASSERT_TRUE(dm.GetTableStatus(dev.name(), &targets)); in TEST_F() 173 auto& dm = DeviceMapper::Instance(); in TEST_F() local [all …]
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 43 using namespace android::dm; 44 using DmBlockDevice = ::android::dm::DeviceMapper::DmBlockDevice; 322 DeviceMapper& dm = DeviceMapper::Instance(); in DmCreateCmdHandler() local 323 if (!dm.CreateEmptyDevice(name)) { in DmCreateCmdHandler() 327 if (!dm.LoadTable(name, table_args->table)) { in DmCreateCmdHandler() 331 if (!table_args->suspended && !dm.ChangeState(name, DmDeviceState::ACTIVE)) { in DmCreateCmdHandler() 345 DeviceMapper& dm = DeviceMapper::Instance(); in DmDeleteCmdHandler() local 346 if (!dm.DeleteDevice(name)) { in DmDeleteCmdHandler() 365 DeviceMapper& dm = DeviceMapper::Instance(); in DmReplaceCmdHandler() local 366 if (!dm.LoadTable(name, table_args->table)) { in DmReplaceCmdHandler() [all …]
|
/system/sepolicy/private/ |
D | update_verifier.te | 25 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 28 # Read /sys/block/dm-X/dm/name (which is a symlink to 29 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between 30 # dm-X and system/vendor partitions.
|
D | snapuserd.te | 1 # snapuserd - Daemon for servicing dm-user requests for Virtual A/B snapshots. 14 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 17 # Read /sys/block/dm-X/dm/name (which is a symlink to 18 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between 19 # dm-X and dynamic partitions. 23 # Reading and writing to /dev/block/dm-* (device-mapper) nodes. 28 # Reading and writing to dm-user control nodes.
|
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/ |
D | test_helpers.h | 102 android::dm::IDeviceMapper& GetDeviceMapper() override { in GetDeviceMapper() 106 return android::dm::DeviceMapper::Instance(); in GetDeviceMapper() 117 void set_dm(android::dm::IDeviceMapper* dm) { dm_ = dm; } in set_dm() argument 128 android::dm::IDeviceMapper* dm_ = nullptr; 131 class DeviceMapperWrapper : public android::dm::IDeviceMapper { 132 using DmDeviceState = android::dm::DmDeviceState; 133 using DmTable = android::dm::DmTable; 136 DeviceMapperWrapper() : impl_(android::dm::DeviceMapper::Instance()) {} in DeviceMapperWrapper() 137 explicit DeviceMapperWrapper(android::dm::IDeviceMapper& impl) : impl_(impl) {} in DeviceMapperWrapper() 172 android::dm::IDeviceMapper& impl_;
|
/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 | blockdev.cpp | 36 using android::dm::DeviceMapper; 99 auto& dm = DeviceMapper::Instance(); in BlockDeviceQueueDepth() local 101 std::optional<std::string> child = dm.GetParentBlockDeviceByPath(blockdev); in BlockDeviceQueueDepth() 108 std::optional<std::string> maybe_blockdev = android::dm::ExtractBlockDeviceName(blockdev); in BlockDeviceQueueDepth()
|
D | fs_mgr.cpp | 106 using android::dm::DeviceMapper; 107 using android::dm::DmDeviceState; 108 using android::dm::DmTargetLinear; 109 using android::dm::LoopControl; 676 DeviceMapper& dm = DeviceMapper::Instance(); in SetReadAheadSize() local 695 auto parent = dm.GetParentBlockDeviceByPath(block_device); in SetReadAheadSize() 1124 DeviceMapper& dm = DeviceMapper::Instance(); in fs_mgr_update_logical_partition() local 1126 if (!dm.GetDmDevicePathByName(entry->blk_device, &device_name)) { in fs_mgr_update_logical_partition() 1191 DeviceMapper& dm = DeviceMapper::Instance(); in Revert() local 1192 if (!dm.DeleteDevice("bow")) { in Revert() [all …]
|
D | fs_mgr_overlayfs_control.cpp | 53 using namespace android::dm; 374 auto& dm = DeviceMapper::Instance(); in GetDsuScratchDevice() local 376 if (dm.GetState(android::gsi::kDsuScratch) != DmDeviceState::INVALID && in GetDsuScratchDevice() 377 dm.GetDmDevicePathByName(android::gsi::kDsuScratch, &device)) { in GetDsuScratchDevice() 414 auto& dm = DeviceMapper::Instance(); in TruncatePartitionsWithSuffix() local 423 if (dm.GetState(name) != DmDeviceState::INVALID && !DestroyLogicalPartition(name)) { in TruncatePartitionsWithSuffix() 435 auto& dm = DeviceMapper::Instance(); in CreateDynamicScratch() local 436 *partition_exists = dm.GetState(partition_name) != DmDeviceState::INVALID; in CreateDynamicScratch() 942 auto& dm = DeviceMapper::Instance(); in GetBootScratchDevice() local 950 if (dm.GetState(partition_name) != DmDeviceState::INVALID && in GetBootScratchDevice() [all …]
|
/system/core/init/ |
D | mount_handler.cpp | 56 auto& dm = dm::DeviceMapper::Instance(); in ParseMount() local 58 if (dm.GetDmDevicePathByName("system", &path) || dm.GetDmDevicePathByName("vroot", &path)) { in ParseMount() 80 auto& dm = dm::DeviceMapper::Instance(); in GetDiskPart() local 81 std::optional<std::string> parent = dm.GetParentBlockDeviceByPath("/dev/block/" + blockdev); in GetDiskPart()
|
/system/vold/model/ |
D | PrivateVolume.cpp | 73 auto& dm = dm::DeviceMapper::Instance(); in doCreate() local 79 ret = dm.DeleteDeviceIfExists(getId()); in doCreate() 101 auto& dm = dm::DeviceMapper::Instance(); in doDestroy() local 107 ret = dm.DeleteDevice(getId()); in doDestroy()
|
/system/core/fs_mgr/libsnapshot/ |
D | utility.h | 60 AutoUnmapDevice(android::dm::IDeviceMapper* dm, const std::string& name) in AutoUnmapDevice() 61 : AutoDevice(name), dm_(dm) {} in AutoUnmapDevice() 66 android::dm::IDeviceMapper* dm_ = nullptr;
|
D | utility.cpp | 32 using android::dm::DeviceMapper; 33 using android::dm::kSectorSize; 294 auto& dm = DeviceMapper::Instance(); in KernelSupportsCompressedSnapshots() local 295 return dm.GetTargetByName("user", nullptr); in KernelSupportsCompressedSnapshots()
|
/system/vold/ |
D | cryptfs.cpp | 43 using namespace android::dm; 135 auto& dm = DeviceMapper::Instance(); in cryptfs_setup_ext_volume() local 163 if (dm.CreateDevice(label, table)) { in cryptfs_setup_ext_volume() 177 if (!dm.GetDmDevicePathByName(label, out_crypto_blkdev)) { in cryptfs_setup_ext_volume()
|
D | MetadataCrypt.cpp | 55 using namespace android::dm; 87 auto& dm = DeviceMapper::Instance(); in defaultkey_precreate_dm_device() local 88 if (dm.GetState(kDmNameUserdata) != DmDeviceState::INVALID) { in defaultkey_precreate_dm_device() 93 if (!dm.CreatePlaceholderDevice(kDmNameUserdata)) { in defaultkey_precreate_dm_device() 188 auto& dm = DeviceMapper::Instance(); in create_crypto_blk_dev() local 189 if (dm_name == kDmNameUserdata && dm.GetState(dm_name) == DmDeviceState::SUSPENDED) { in create_crypto_blk_dev() 191 if (!dm.LoadTableAndActivate(dm_name, table)) { in create_crypto_blk_dev() 195 if (!dm.WaitForDevice(dm_name, 20s, crypto_blkdev)) { in create_crypto_blk_dev() 199 } else if (!dm.CreateDevice(dm_name, table, crypto_blkdev, 5s)) { in create_crypto_blk_dev()
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 42 using android::dm::DeviceMapper; 43 using android::dm::DmDeviceState; 44 using android::dm::DmTable; 45 using android::dm::DmTargetLinear; 46 using android::dm::LoopControl; 122 auto& dm = DeviceMapper::Instance(); in IsImageMapped() local 123 return dm.GetState(image_name) != DmDeviceState::INVALID; in IsImageMapped() 421 auto& dm = DeviceMapper::Instance(); in MapWithLoopDeviceList() local 422 if (!dm.CreateDevice(name, table, path, timeout_ms)) { in MapWithLoopDeviceList() 437 dm.DeleteDevice(name); in MapWithLoopDeviceList() [all …]
|
D | README.md | 42 `dm-default-key` device. This means the underlying device is not marked in use, 43 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/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 | 165 dm::DeviceMapper& dm = dm::DeviceMapper::Instance(); in GetLogicalPath() local 166 if (!dm.GetDmDevicePathByName(fstab_entry->blk_device, &device_path)) { in GetLogicalPath()
|
D | avb_util.cpp | 42 const std::string& blk_device, android::dm::DmTable* table) { in ConstructVerityTable() 65 android::dm::DmTargetVerity target( in ConstructVerityTable() 88 return table->AddTarget(std::make_unique<android::dm::DmTargetVerity>(target)); in ConstructVerityTable() 93 android::dm::DmTable table; in HashtreeDmVeritySetup() 105 android::dm::DeviceMapper& dm = android::dm::DeviceMapper::Instance(); in HashtreeDmVeritySetup() local 106 if (!dm.CreateDevice(device_name, table, &dev_path, timeout)) { in HashtreeDmVeritySetup()
|
/system/core/fs_mgr/libsnapshot/snapuserd/testing/ |
D | dm_user_harness.cpp | 47 android::dm::DmTable dmuser_table; in CreateUserDevice() 48 dmuser_table.Emplace<android::dm::DmTargetUser>(0, num_sectors, misc_name); in CreateUserDevice()
|
D | temp_device.h | 25 using android::dm::DeviceMapper; 26 using android::dm::DmTable;
|
/system/sepolicy/microdroid/system/private/ |
D | encryptedstore.te | 1 # encryptedstore is a program that provides (encrypted) storage solution in a VM based on dm-crypt 9 # encryptedstore require access to block device directory to map dm-crypt 15 # allow encryptedstore to create dm-crypt devices
|
/system/core/fs_mgr/tests/ |
D | vts_fs_test.cpp | 97 auto& dm = android::dm::DeviceMapper::Instance(); in TEST() local 112 auto parent = dm.GetParentBlockDeviceByPath(parent_bdev); in TEST()
|
/system/libvintf/ |
D | main.cpp | 204 bool dm = false; member 219 if (fcm && !dm) return false; in meetsReqeuirement() 226 << kColumnSeperator << (row.dm ? "DM" : " ") << kColumnSeperator in operator <<() 271 insert(vm, &table, [](auto* row) { row->dm = true; }); in generateHalSummary() 385 auto dm = VintfObject::GetDeviceHalManifest(); in dumpDm() local 386 if (dm != nullptr) std::cout << toXml(*dm); in dumpDm()
|