From 0badb7ca4cd3310a69fd4c0e1cca4f5ffb099897 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Thu, 4 Feb 2021 18:10:17 -0800 Subject: [PATCH] Add compression to dump Add compression flag to SnapshotManager::Dump. Test: snapshotctl dump Change-Id: Ie1f6562736d4e83ef7e70d79c761ee42194d7fc5 --- fs_mgr/libsnapshot/snapshot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs_mgr/libsnapshot/snapshot.cpp b/fs_mgr/libsnapshot/snapshot.cpp index d9218f4ed..bf58012f5 100644 --- a/fs_mgr/libsnapshot/snapshot.cpp +++ b/fs_mgr/libsnapshot/snapshot.cpp @@ -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: "