Home
last modified time | relevance | path

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

/system/core/fs_mgr/libdm/
Ddm_test.cpp179 DmTargetSnapshot target1(0, 512, "base", "cow", SnapshotStorageMode::Persistent, 8); in TEST()
180 if (DmTargetSnapshot::ReportsOverflow("snapshot")) { in TEST()
187 DmTargetSnapshot target2(0, 512, "base", "cow", SnapshotStorageMode::Transient, 8); in TEST()
191 DmTargetSnapshot target3(0, 512, "base", "cow", SnapshotStorageMode::Merge, 8); in TEST()
192 if (DmTargetSnapshot::ReportsOverflow("snapshot-merge")) { in TEST()
262 ASSERT_TRUE(snap_table.AddTarget(make_unique<DmTargetSnapshot>( in SetupImpl()
283 make_unique<DmTargetSnapshot>(0, kBaseDeviceSize / kSectorSize, base_loop_->device(), in MergeImpl()
298 DmTargetSnapshot::Status merge_status; in MergeImpl()
299 ASSERT_TRUE(DmTargetSnapshot::ParseStatusText(status[0].data, &merge_status)); in MergeImpl()
412 DmTargetSnapshot::Status status; in TEST()
[all …]
Ddm_target.cpp128 std::string DmTargetSnapshot::name() const { in name()
135 std::string DmTargetSnapshot::GetParameterString() const { in GetParameterString()
161 double DmTargetSnapshot::MergePercent(const DmTargetSnapshot::Status& status, in MergePercent()
177 bool DmTargetSnapshot::ReportsOverflow(const std::string& target_type) { in ReportsOverflow()
192 bool DmTargetSnapshot::ParseStatusText(const std::string& text, Status* status) { in ParseStatusText()
218 bool DmTargetSnapshot::GetDevicesFromParams(const std::string& params, std::string* base_device, in GetDevicesFromParams()
/system/core/fs_mgr/libsnapshot/
Dpower_test.cpp46 using android::dm::DmTargetSnapshot;
94 bool GetMergeStatus(DmTargetSnapshot::Status* status);
353 table.Emplace<DmTargetSnapshot>(0, sectors, image_path_, cow_path_, mode, 8); in MapSnapshot()
361 bool PowerTest::GetMergeStatus(DmTargetSnapshot::Status* status) { in GetMergeStatus()
371 if (!DmTargetSnapshot::ParseStatusText(targets[0].data, status)) { in GetMergeStatus()
432 DmTargetSnapshot::Status status; in Merge()
Dsnapshot.cpp55 using android::dm::DmTargetSnapshot;
442 table.Emplace<DmTargetSnapshot>(0, snapshot_sectors, base_device, cow_device, mode, in MapSnapshot()
621 DmTargetSnapshot::Status initial_target_values = {}; in InitiateMerge()
623 DmTargetSnapshot::Status current_status; in InitiateMerge()
695 DmTargetSnapshot::Status dm_status; in SwitchSnapshotToMerge()
721 if (!DmTargetSnapshot::GetDevicesFromParams(old_targets[0].data, &base_device, &cow_device)) { in RewriteSnapshotDeviceTable()
727 table.Emplace<DmTargetSnapshot>(0, old_targets[0].spec.length, base_device, cow_device, in RewriteSnapshotDeviceTable()
784 DmTargetSnapshot::Status* status) { in QuerySnapshotStatus()
790 if (!DmTargetSnapshot::ParseStatusText(target.data, status)) { in QuerySnapshotStatus()
977 DmTargetSnapshot::Status status; in CheckTargetMergeState()
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h332 using DmTargetSnapshot = android::dm::DmTargetSnapshot; variable
477 DmTargetSnapshot::Status* status);
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h201 class DmTargetSnapshot final : public DmTarget {
203 DmTargetSnapshot(uint64_t start, uint64_t length, const std::string& base_device, in DmTargetSnapshot() function
/system/core/fs_mgr/tools/
Ddmctl.cpp156 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
175 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()