Add compression to dump

Add compression flag to SnapshotManager::Dump.

Test: snapshotctl dump

Change-Id: Ie1f6562736d4e83ef7e70d79c761ee42194d7fc5
This commit is contained in:
Yifan Hong 2021-02-04 18:10:17 -08:00
parent 114a2c0916
commit 0badb7ca4c

View file

@ -3098,7 +3098,8 @@ bool SnapshotManager::Dump(std::ostream& os) {
std::stringstream ss;
ss << "Update state: " << ReadUpdateState(file.get()) << std::endl;
ss << "Compression: " << ReadSnapshotUpdateStatus(file.get()).compression_enabled()
<< std::endl;
ss << "Current slot: " << device_->GetSlotSuffix() << std::endl;
ss << "Boot indicator: booting from " << GetCurrentSlot() << " slot" << std::endl;
ss << "Rollback indicator: "