Home
last modified time | relevance | path

Searched refs:base_device (Results 1 – 7 of 7) sorted by relevance

/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h204 DmTargetSnapshot(uint64_t start, uint64_t length, const std::string& base_device, in DmTargetSnapshot() argument
207 base_device_(base_device), in DmTargetSnapshot()
226 static bool GetDevicesFromParams(const std::string& params, std::string* base_device,
/system/core/fs_mgr/tools/
Ddmctl.cpp140 std::string base_device = NextArg(); in Next() local
160 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
169 std::string base_device = NextArg(); in Next() local
179 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
/system/core/fs_mgr/libdm/
Ddm_target.cpp224 bool DmTargetSnapshot::GetDevicesFromParams(const std::string& params, std::string* base_device, in GetDevicesFromParams() argument
231 *base_device = pieces[0]; in GetDevicesFromParams()
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp440 const std::string& cow_file, const std::string& base_device, in MapDmUserCow() argument
481 base_sectors = snapuserd_client_->InitDmUserCow(misc_name, cow_file, base_device); in MapDmUserCow()
525 if (!snapuserd_client_->InitDmUserCow(misc_name, cow_file, base_device, base_path_merge)) { in MapDmUserCow()
535 const std::string& base_device, const std::string& cow_device, in MapSnapshot() argument
552 if (android::base::StartsWith(base_device, "/")) { in MapSnapshot()
553 unique_fd fd(open(base_device.c_str(), O_RDONLY | O_CLOEXEC)); in MapSnapshot()
555 PLOG(ERROR) << "open failed: " << base_device; in MapSnapshot()
560 PLOG(ERROR) << "Could not determine block device size: " << base_device; in MapSnapshot()
564 LOG(ERROR) << "Block device size for " << base_device << " does not match" in MapSnapshot()
570 LOG(ERROR) << "invalid blockdev size for " << base_device << ": " << status.device_size(); in MapSnapshot()
[all …]
Dsnapshot_test.cpp592 std::string base_device; in TEST_F() local
593 ASSERT_TRUE(CreatePartition("base-device", kDeviceSize, &base_device)); in TEST_F()
599 ASSERT_TRUE(sm->MapSnapshot(lock_.get(), "test-snapshot", base_device, cow_device, 10s, in TEST_F()
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp911 std::string base_device; in GetVerityDeviceName() local
917 base_device = "system"; in GetVerityDeviceName()
919 base_device = android::base::Basename(entry.mount_point); in GetVerityDeviceName()
921 return base_device + "-verity"; in GetVerityDeviceName()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h519 bool MapSnapshot(LockedFile* lock, const std::string& name, const std::string& base_device,
525 const std::string& base_device, const std::string& base_path_merge,