diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-02-07 17:15:04 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-02-22 21:21:09 +0100 |
commit | e6439d783cce2c5cdbe4f8028f0b45162b540f82 (patch) | |
tree | 5f8cfd4117e1f22852af8e8546c6146af983d2c8 /tests | |
parent | c9fc50839863f05545caca92bb9fbead8b1c91bd (diff) |
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.out | 1 | ||||
-rw-r--r-- | tests/qemu-iotests/common.rc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/044.out b/tests/qemu-iotests/044.out index 9c4867329f..5eed3f87a3 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 5ba960b09f..e522d617aa 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' } |