aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/039
diff options
context:
space:
mode:
authorFederico Simoncelli <fsimonce@redhat.com>2013-01-28 06:59:46 -0500
committerKevin Wolf <kwolf@redhat.com>2013-02-22 21:21:08 +0100
commitc6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8 (patch)
treefb7d050ec41a145e93d9a677c4136e880879fc59 /tests/qemu-iotests/039
parent5cbb08283789caf7dbfd0890dcff47124ad766c2 (diff)
downloadqemu-c6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8.zip
qemu-c6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8.tar.gz
qemu-c6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8.tar.bz2
qemu-img: find the image end offset during check
This patch adds the support for reporting the image end offset (in bytes). This is particularly useful after a conversion (or a rebase) where the destination is a block device in order to find the first unused byte at the end of the image. Signed-off-by: Federico Simoncelli <fsimonce@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/039')
-rwxr-xr-xtests/qemu-iotests/0392
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/039 b/tests/qemu-iotests/039
index c5ae806..ae35175 100755
--- a/tests/qemu-iotests/039
+++ b/tests/qemu-iotests/039
@@ -86,7 +86,7 @@ $QEMU_IO -r -c "read -P 0x5a 0 512" $TEST_IMG | _filter_qemu_io
echo
echo "== Repairing the image file must succeed =="
-$QEMU_IMG check -r all $TEST_IMG
+_check_test_img -r all
# The dirty bit must not be set
./qcow2.py $TEST_IMG dump-header | grep incompatible_features