Home
last modified time | relevance | path

Searched refs:MergeFailureCode (Results 1 – 10 of 10) sorted by relevance

/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot_stats.h37 virtual void set_merge_failure_code(MergeFailureCode code) = 0;
44 virtual MergeFailureCode merge_failure_code() = 0;
81 void set_merge_failure_code(MergeFailureCode code) override;
82 MergeFailureCode merge_failure_code() override;
Dsnapshot.h178 virtual MergeFailureCode ReadMergeFailureCode() = 0;
348 MergeFailureCode ReadMergeFailureCode() override;
399 FRIEND_TEST(SnapshotTest, MergeFailureCode);
552 MergeFailureCode failure_code = MergeFailureCode::Ok);
561 MergeFailureCode MergeSecondPhaseSnapshots(LockedFile* lock);
562 MergeFailureCode SwitchSnapshotToMerge(LockedFile* lock, const std::string& name);
563 MergeFailureCode RewriteSnapshotDeviceTable(const std::string& dm_name);
566 void AcknowledgeMergeFailure(MergeFailureCode failure_code);
595 MergeFailureCode failure_code = MergeFailureCode::Ok)
598 MergeFailureCode failure_code;
[all …]
Dmock_snapshot_merge_stats.h37 MOCK_METHOD(void, set_merge_failure_code, (MergeFailureCode), (override));
45 MOCK_METHOD(MergeFailureCode, merge_failure_code, (), (override));
Dsnapshot_stub.h32 MergeFailureCode ReadMergeFailureCode() override;
Dmock_snapshot.h30 MOCK_METHOD(MergeFailureCode, ReadMergeFailureCode, (), (override));
/system/core/fs_mgr/libsnapshot/
Dsnapshot_stub.cpp138 void set_merge_failure_code(MergeFailureCode) override {} in set_merge_failure_code() argument
139 MergeFailureCode merge_failure_code() override { return MergeFailureCode::Ok; } in merge_failure_code()
171 auto SnapshotManagerStub::ReadMergeFailureCode() -> MergeFailureCode { in ReadMergeFailureCode()
173 return MergeFailureCode::Ok; in ReadMergeFailureCode()
Dsnapshot.cpp744 auto reported_code = MergeFailureCode::Ok; in InitiateMerge()
750 if (code != MergeFailureCode::Ok) { in InitiateMerge()
752 if (reported_code == MergeFailureCode::Ok) { in InitiateMerge()
761 if (reported_code != MergeFailureCode::Ok) { in InitiateMerge()
769 MergeFailureCode SnapshotManager::SwitchSnapshotToMerge(LockedFile* lock, const std::string& name) { in SwitchSnapshotToMerge()
772 return MergeFailureCode::ReadStatus; in SwitchSnapshotToMerge()
781 if (auto code = RewriteSnapshotDeviceTable(name); code != MergeFailureCode::Ok) { in SwitchSnapshotToMerge()
796 return MergeFailureCode::Ok; in SwitchSnapshotToMerge()
799 MergeFailureCode SnapshotManager::RewriteSnapshotDeviceTable(const std::string& name) { in RewriteSnapshotDeviceTable()
805 return MergeFailureCode::GetTableInfo; in RewriteSnapshotDeviceTable()
[all …]
Dsnapshot_stats.cpp132 void SnapshotMergeStats::set_merge_failure_code(MergeFailureCode code) { in set_merge_failure_code()
136 MergeFailureCode SnapshotMergeStats::merge_failure_code() { in merge_failure_code()
Dsnapshot_test.cpp682 TEST_F(SnapshotTest, MergeFailureCode) { in TEST_F() argument
686 MergeFailureCode::ListSnapshots)); in TEST_F()
691 ASSERT_EQ(status.merge_failure_code(), MergeFailureCode::ListSnapshots); in TEST_F()
/system/core/fs_mgr/libsnapshot/android/snapshot/
Dsnapshot.proto146 enum MergeFailureCode { enum
193 MergeFailureCode merge_failure_code = 7;
227 MergeFailureCode merge_failure_code = 9;