Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 470d5085 authored by Treehugger Robot's avatar Treehugger Robot
Browse files

Merge "snapshot: helper to get access snapshot_state path" am: 34ad19f4 am:...

Merge "snapshot: helper to get access snapshot_state path" am: 34ad19f4 am: 054e278a am: f9b84462

Change-Id: I0609f33a5d13fea8fff8689db2c32c5386c90bda
parents f21f71bd f9b84462
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -395,6 +395,10 @@ class SnapshotManager final {
    bool WriteSnapshotUpdateStatus(LockedFile* file, const SnapshotUpdateStatus& status);
    std::string GetStateFilePath() const;

    // Interact with /metadata/ota/merge_state.
    // This file contains information related to the snapshot merge process.
    std::string GetMergeStateFilePath() const;

    // Helpers for merging.
    bool SwitchSnapshotToMerge(LockedFile* lock, const std::string& name);
    bool RewriteSnapshotDeviceTable(const std::string& dm_name);
+4 −0
Original line number Diff line number Diff line
@@ -1739,6 +1739,10 @@ std::string SnapshotManager::GetStateFilePath() const {
    return metadata_dir_ + "/state"s;
}

std::string SnapshotManager::GetMergeStateFilePath() const {
    return metadata_dir_ + "/merge_state"s;
}

std::string SnapshotManager::GetLockPath() const {
    return metadata_dir_;
}