Home
last modified time | relevance | path

Searched refs:cow_device (Results 1 – 19 of 19) sorted by relevance

/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dworker.cpp22 Worker::Worker(const std::string& cow_device, const std::string& misc_name, in Worker() argument
24 cow_device_ = cow_device; in Worker()
Dmerge_worker.h25 MergeWorker(const std::string& cow_device, const std::string& misc_name,
Dworker.h36 Worker(const std::string& cow_device, const std::string& misc_name,
Dsnapuserd_readahead.h37 ReadAhead(const std::string& cow_device, const std::string& backing_device,
Dread_worker.h28 ReadWorker(const std::string& cow_device, const std::string& backing_device,
Dsnapuserd_core.cpp36 SnapshotHandler::SnapshotHandler(std::string misc_name, std::string cow_device, in SnapshotHandler() argument
41 cow_device_ = std::move(cow_device); in SnapshotHandler()
Dmerge_worker.cpp31 MergeWorker::MergeWorker(const std::string& cow_device, const std::string& misc_name, in MergeWorker() argument
34 : Worker(cow_device, misc_name, base_path_merge, snapuserd) {} in MergeWorker()
Dsnapuserd_core.h105 SnapshotHandler(std::string misc_name, std::string cow_device, std::string backing_device,
Dread_worker.cpp38 ReadWorker::ReadWorker(const std::string& cow_device, const std::string& backing_device, in ReadWorker() argument
42 : Worker(cow_device, misc_name, base_path_merge, snapuserd), in ReadWorker()
Dsnapuserd_readahead.cpp31 ReadAhead::ReadAhead(const std::string& cow_device, const std::string& backing_device, in ReadAhead() argument
33 cow_device_ = cow_device; in ReadAhead()
/system/core/fs_mgr/libsnapshot/
Dsnapshotctl.cpp114 bool WriteSnapshotPatch(std::string cow_device, std::string patch);
237 std::string cow_device = partition_name + "-cow"; in GetCowDevicePath() local
238 if (dm.GetDmDevicePathByName(cow_device, cow_path)) { in GetCowDevicePath()
242 LOG(INFO) << "Failed to find cow path: " << cow_device << " Checking the device for -img path"; in GetCowDevicePath()
244 cow_device = partition_name + "-cow-img"; in GetCowDevicePath()
245 if (!dm.GetDmDevicePathByName(cow_device, cow_path)) { in GetCowDevicePath()
246 LOG(ERROR) << "Failed to cow path: " << cow_device; in GetCowDevicePath()
395 bool MapSnapshots::WriteSnapshotPatch(std::string cow_device, std::string patch) { in WriteSnapshotPatch() argument
410 android::base::unique_fd cfd(TEMP_FAILURE_RETRY(open(cow_device.c_str(), O_RDWR))); in WriteSnapshotPatch()
412 LOG(ERROR) << "Failed to open file: " << cow_device; in WriteSnapshotPatch()
Dsnapshot.cpp582 const std::string& base_device, const std::string& cow_device, in MapSnapshot() argument
667 table.Emplace<DmTargetSnapshot>(0, snapshot_sectors, base_device, cow_device, mode, in MapSnapshot()
989 std::string base_device, cow_device; in RewriteSnapshotDeviceTable() local
990 if (!DmTargetSnapshot::GetDevicesFromParams(old_targets[0].data, &base_device, &cow_device)) { in RewriteSnapshotDeviceTable()
996 table.Emplace<DmTargetSnapshot>(0, old_targets[0].spec.length, base_device, cow_device, in RewriteSnapshotDeviceTable()
1566 std::string base_device, cow_device; in CollapseSnapshotDevice() local
1567 if (!DmTargetSnapshot::GetDevicesFromParams(target.data, &base_device, &cow_device)) { in CollapseSnapshotDevice()
2488 std::string cow_device; in MapPartitionWithSnapshot() local
2489 if (!GetMappedImageDeviceStringOrPath(cow_name, &cow_device)) { in MapPartitionWithSnapshot()
2546 cow_device = new_cow_device; in MapPartitionWithSnapshot()
[all …]
Dsnapshot_test.cpp405 std::string cow_device; in CreateCowImage() local
406 auto map_res = MapCowImage(name, 10s, &cow_device); in CreateCowImage()
410 if (!InitializeKernelCow(cow_device)) { in CreateCowImage()
411 return AssertionFailure() << "Cannot zero fill " << cow_device; in CreateCowImage()
595 std::string cow_device; in TEST_F() local
596 ASSERT_TRUE(MapCowImage("test-snapshot", 10s, &cow_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/libsnapshot/snapuserd/
Dsnapuserd_client.cpp248 uint64_t SnapuserdClient::InitDmUserCow(const std::string& misc_name, const std::string& cow_device, in InitDmUserCow() argument
254 parts = {"init", misc_name, cow_device, backing_device}; in InitDmUserCow()
257 parts = {"init", misc_name, cow_device, backing_device, base_path_merge}; in InitDmUserCow()
274 LOG(DEBUG) << "Snapuserd daemon COW device initialized: " << cow_device in InitDmUserCow()
/system/core/fs_mgr/libsnapshot/snapuserd/include/snapuserd/
Dsnapuserd_client.h71 uint64_t InitDmUserCow(const std::string& misc_name, const std::string& cow_device,
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h223 const std::string& cow_device, SnapshotStorageMode mode, uint64_t chunk_size) in DmTargetSnapshot() argument
226 cow_device_(cow_device), in DmTargetSnapshot()
245 std::string* cow_device);
/system/core/fs_mgr/tools/
Ddmctl.cpp158 std::string cow_device = NextArg(); in Next() local
178 cow_device, mode, chunk_size); in Next()
187 std::string cow_device = NextArg(); in Next() local
197 cow_device, mode, chunk_size); in Next()
/system/core/fs_mgr/libdm/
Ddm_target.cpp229 std::string* cow_device) { in GetDevicesFromParams() argument
236 *cow_device = pieces[1]; in GetDevicesFromParams()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h515 const std::string& cow_device, const std::chrono::milliseconds& timeout_ms,