Loading fs_mgr/libsnapshot/snapshot.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -351,10 +351,15 @@ bool SnapshotManager::RemoveAllUpdateState(LockedFile* lock, const std::function LOG(INFO) << "Removing all update state."; if (ReadUpdateState(lock) != UpdateState::None) { // Only call this if we're actually cancelling an update. It's not // expected to yield anything otherwise, and firing up gsid on normal // boot is expensive. if (!RemoveAllSnapshots(lock)) { LOG(ERROR) << "Could not remove all snapshots"; return false; } } // It's okay if these fail: // - For SnapshotBoot and Rollback, first-stage init performs a deeper check after Loading Loading
fs_mgr/libsnapshot/snapshot.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -351,10 +351,15 @@ bool SnapshotManager::RemoveAllUpdateState(LockedFile* lock, const std::function LOG(INFO) << "Removing all update state."; if (ReadUpdateState(lock) != UpdateState::None) { // Only call this if we're actually cancelling an update. It's not // expected to yield anything otherwise, and firing up gsid on normal // boot is expensive. if (!RemoveAllSnapshots(lock)) { LOG(ERROR) << "Could not remove all snapshots"; return false; } } // It's okay if these fail: // - For SnapshotBoot and Rollback, first-stage init performs a deeper check after Loading