Loading fs_mgr/libsnapshot/include/libsnapshot/snapshot.h +4 −0 Original line number Diff line number Diff line Loading @@ -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); Loading fs_mgr/libsnapshot/snapshot.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -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_; } Loading Loading
fs_mgr/libsnapshot/include/libsnapshot/snapshot.h +4 −0 Original line number Diff line number Diff line Loading @@ -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); Loading
fs_mgr/libsnapshot/snapshot.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -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_; } Loading