Merge "libsnapshot: dump rollback indicator" am: 98dc71f4ff

Change-Id: I98a894031841dfcce0f744053d4e802f78e856c1
This commit is contained in:
Automerger Merge Worker 2020-02-24 19:14:37 +00:00
commit 482ce8bad3

View file

@ -2352,6 +2352,9 @@ bool SnapshotManager::Dump(std::ostream& os) {
ss << "Current slot: " << device_->GetSlotSuffix() << std::endl;
ss << "Boot indicator: booting from " << GetCurrentSlot() << " slot" << std::endl;
ss << "Rollback indicator: "
<< (access(GetRollbackIndicatorPath().c_str(), F_OK) == 0 ? "exists" : strerror(errno))
<< std::endl;
bool ok = true;
std::vector<std::string> snapshots;