Home
last modified time | relevance | path

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

/system/core/fs_mgr/libdm/
Ddm_test.cpp216 DmTargetSnapshot target1(0, 512, "base", "cow", SnapshotStorageMode::Persistent, 8); in TEST_F()
217 if (DmTargetSnapshot::ReportsOverflow("snapshot")) { in TEST_F()
224 DmTargetSnapshot target2(0, 512, "base", "cow", SnapshotStorageMode::Transient, 8); in TEST_F()
228 DmTargetSnapshot target3(0, 512, "base", "cow", SnapshotStorageMode::Merge, 8); in TEST_F()
229 if (DmTargetSnapshot::ReportsOverflow("snapshot-merge")) { in TEST_F()
299 ASSERT_TRUE(snap_table.AddTarget(make_unique<DmTargetSnapshot>( in SetupImpl()
320 make_unique<DmTargetSnapshot>(0, kBaseDeviceSize / kSectorSize, base_loop_->device(), in MergeImpl()
335 DmTargetSnapshot::Status merge_status; in MergeImpl()
336 ASSERT_TRUE(DmTargetSnapshot::ParseStatusText(status[0].data, &merge_status)); in MergeImpl()
449 DmTargetSnapshot::Status status; in TEST_F()
[all …]
Ddm_target.cpp138 std::string DmTargetSnapshot::name() const { in name()
145 std::string DmTargetSnapshot::GetParameterString() const { in GetParameterString()
171 double DmTargetSnapshot::MergePercent(const DmTargetSnapshot::Status& status, in MergePercent()
187 bool DmTargetSnapshot::ReportsOverflow(const std::string& target_type) { in ReportsOverflow()
202 bool DmTargetSnapshot::ParseStatusText(const std::string& text, Status* status) { in ParseStatusText()
228 bool DmTargetSnapshot::GetDevicesFromParams(const std::string& params, std::string* base_device, in GetDevicesFromParams()
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp61 using android::dm::DmTargetSnapshot;
667 table.Emplace<DmTargetSnapshot>(0, snapshot_sectors, base_device, cow_device, mode, in MapSnapshot()
856 DmTargetSnapshot::Status initial_target_values = {}; in InitiateMerge()
859 DmTargetSnapshot::Status current_status; in InitiateMerge()
964 DmTargetSnapshot::Status dm_status; in SwitchSnapshotToMerge()
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()
1076 DmTargetSnapshot::Status* status) { in QuerySnapshotStatus()
1082 if (!DmTargetSnapshot::ParseStatusText(target.data, status)) { in QuerySnapshotStatus()
1352 DmTargetSnapshot::Status status; in CheckTargetMergeState()
[all …]
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h220 class DmTargetSnapshot final : public DmTarget {
222 DmTargetSnapshot(uint64_t start, uint64_t length, const std::string& base_device, in DmTargetSnapshot() function
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h447 using DmTargetSnapshot = android::dm::DmTargetSnapshot; variable
627 DmTargetSnapshot::Status* status);
/system/core/fs_mgr/tools/
Ddmctl.cpp177 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()
196 return std::make_unique<DmTargetSnapshot>(start_sector, num_sectors, base_device, in Next()