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.h203 DmTargetSnapshot(uint64_t start, uint64_t length, const std::string& base_device, in DmTargetSnapshot() argument
206 base_device_(base_device), in DmTargetSnapshot()
225 static bool GetDevicesFromParams(const std::string& params, std::string* base_device,
/system/core/fs_mgr/tools/
Ddmctl.cpp138 std::string base_device = NextArg(); in Next() local
158 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
167 std::string base_device = NextArg(); in Next() local
177 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
/system/core/fs_mgr/libdm/
Ddm_target.cpp220 bool DmTargetSnapshot::GetDevicesFromParams(const std::string& params, std::string* base_device, in GetDevicesFromParams() argument
227 *base_device = pieces[0]; in GetDevicesFromParams()
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp401 const std::string& cow_file, const std::string& base_device, in MapDmUserCow() argument
418 uint64_t base_sectors = snapuserd_client_->InitDmUserCow(misc_name, cow_file, base_device); in MapDmUserCow()
442 const std::string& base_device, const std::string& cow_device, in MapSnapshot() argument
459 if (android::base::StartsWith(base_device, "/")) { in MapSnapshot()
460 unique_fd fd(open(base_device.c_str(), O_RDONLY | O_CLOEXEC)); in MapSnapshot()
462 PLOG(ERROR) << "open failed: " << base_device; in MapSnapshot()
467 PLOG(ERROR) << "Could not determine block device size: " << base_device; in MapSnapshot()
471 LOG(ERROR) << "Block device size for " << base_device << " does not match" in MapSnapshot()
477 LOG(ERROR) << "invalid blockdev size for " << base_device << ": " << status.device_size(); in MapSnapshot()
482 LOG(ERROR) << "Invalid snapshot size for " << base_device << ": " << status.snapshot_size(); in MapSnapshot()
[all …]
Dsnapshot_test.cpp480 std::string base_device; in TEST_F() local
481 ASSERT_TRUE(CreatePartition("base-device", kDeviceSize, &base_device)); in TEST_F()
487 ASSERT_TRUE(sm->MapSnapshot(lock_.get(), "test-snapshot", base_device, cow_device, 10s, in TEST_F()
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp921 std::string base_device; in GetVerityDeviceName() local
927 base_device = "system"; in GetVerityDeviceName()
929 base_device = android::base::Basename(entry.mount_point); in GetVerityDeviceName()
931 return base_device + "-verity"; in GetVerityDeviceName()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h485 bool MapSnapshot(LockedFile* lock, const std::string& name, const std::string& base_device,
491 const std::string& base_device, const std::chrono::milliseconds& timeout_ms,