Merge "libsnapshot: dump rollback indicator"
This commit is contained in:
commit
98dc71f4ff
1 changed files with 3 additions and 0 deletions
|
|
@ -2352,6 +2352,9 @@ bool SnapshotManager::Dump(std::ostream& os) {
|
||||||
|
|
||||||
ss << "Current slot: " << device_->GetSlotSuffix() << std::endl;
|
ss << "Current slot: " << device_->GetSlotSuffix() << std::endl;
|
||||||
ss << "Boot indicator: booting from " << GetCurrentSlot() << " slot" << 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;
|
bool ok = true;
|
||||||
std::vector<std::string> snapshots;
|
std::vector<std::string> snapshots;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue