Merge "snapshotctl: Initialize snapshot pointer when reverting snapshots" into main
This commit is contained in:
commit
5a6ab7d869
1 changed files with 6 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class MapSnapshots {
|
||||||
bool FinishSnapshotWrites();
|
bool FinishSnapshotWrites();
|
||||||
bool UnmapCowImagePath(std::string& name);
|
bool UnmapCowImagePath(std::string& name);
|
||||||
bool DeleteSnapshots();
|
bool DeleteSnapshots();
|
||||||
bool CleanupSnapshot() { return sm_->PrepareDeviceToBootWithoutSnapshot(); }
|
bool CleanupSnapshot();
|
||||||
bool BeginUpdate();
|
bool BeginUpdate();
|
||||||
bool ApplyUpdate();
|
bool ApplyUpdate();
|
||||||
|
|
||||||
|
|
@ -495,6 +495,11 @@ bool MapSnapshots::UnmapCowImagePath(std::string& name) {
|
||||||
return sm_->UnmapCowImage(name);
|
return sm_->UnmapCowImage(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool MapSnapshots::CleanupSnapshot() {
|
||||||
|
sm_ = SnapshotManager::New();
|
||||||
|
return sm_->PrepareDeviceToBootWithoutSnapshot();
|
||||||
|
}
|
||||||
|
|
||||||
bool MapSnapshots::DeleteSnapshots() {
|
bool MapSnapshots::DeleteSnapshots() {
|
||||||
sm_ = SnapshotManager::New();
|
sm_ = SnapshotManager::New();
|
||||||
lock_ = sm_->LockExclusive();
|
lock_ = sm_->LockExclusive();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue