aboutsummaryrefslogtreecommitdiff
path: root/tests
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 /tests
parentc9fc50839863f05545caca92bb9fbead8b1c91bd (diff)
downloadqemu-e6439d783cce2c5cdbe4f8028f0b45162b540f82.zip
qemu-e6439d783cce2c5cdbe4f8028f0b45162b540f82.tar.gz
qemu-e6439d783cce2c5cdbe4f8028f0b45162b540f82.tar.bz2
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 'tests')
-rw-r--r--tests/qemu-iotests/044.out1
-rw-r--r--tests/qemu-iotests/common.rc2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/044.out b/tests/qemu-iotests/044.out
index 9c48673..5eed3f8 100644
--- a/tests/qemu-iotests/044.out
+++ b/tests/qemu-iotests/044.out
@@ -1,4 +1,5 @@
No errors were found on the image.
+7292415/8391499= 86.90% allocated, 0.00% fragmented, 0.00% compressed clusters
Image end offset: 4296447488
.
----------------------------------------------------------------------
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index 5ba960b..e522d61 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -162,7 +162,7 @@ _cleanup_test_img()
_check_test_img()
{
$QEMU_IMG check "$@" -f $IMGFMT $TEST_IMG 2>&1 | \
- sed -e "/fragmented$/d" \
+ sed -e '/allocated.*fragmented.*compressed clusters/d' \
-e 's/qemu-img: This image format does not support checks/No errors were found on the image./' \
-e '/Image end offset: [0-9]\+/d'
}