summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-02-07 17:15:04 +0100
committerKevin Wolf <kwolf@redhat.com>2013-02-22 21:21:09 +0100
commite6439d783cce2c5cdbe4f8028f0b45162b540f82 (patch)
tree5f8cfd4117e1f22852af8e8546c6146af983d2c8 /include
parentc9fc50839863f05545caca92bb9fbead8b1c91bd (diff)
downloadhqemu-e6439d783cce2c5cdbe4f8028f0b45162b540f82.zip
hqemu-e6439d783cce2c5cdbe4f8028f0b45162b540f82.tar.gz
qemu-img: add compressed clusters to BlockFragInfo
Show how many clusters are compressed. This can be used to monitor how many compressed clusters remain and whether to recompress the image. Suggested-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index ce61883..9661f9a 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -24,6 +24,7 @@ typedef struct BlockFragInfo {
uint64_t allocated_clusters;
uint64_t total_clusters;
uint64_t fragmented_clusters;
+ uint64_t compressed_clusters;
} BlockFragInfo;
typedef struct QEMUSnapshotInfo {
OpenPOWER on IntegriCloud