diff options
author | Federico Simoncelli | 2013-01-28 12:59:46 +0100 |
---|---|---|
committer | Kevin Wolf | 2013-02-22 21:21:08 +0100 |
commit | c6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8 (patch) | |
tree | fb7d050ec41a145e93d9a677c4136e880879fc59 /tests/qemu-iotests/026 | |
parent | ui/gtk: require at least GTK 2.18 and VTE 0.26 (diff) | |
download | qemu-c6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8.tar.gz qemu-c6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8.tar.xz qemu-c6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8.zip |
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/026')
-rwxr-xr-x | tests/qemu-iotests/026 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qemu-iotests/026 b/tests/qemu-iotests/026 index 1602ccd2a5..107a3ff2f6 100755 --- a/tests/qemu-iotests/026 +++ b/tests/qemu-iotests/026 @@ -102,7 +102,7 @@ if [ "$event" == "l2_load" ]; then $QEMU_IO -c "read $vmstate 0 128k " $BLKDBG_TEST_IMG | _filter_qemu_io fi -$QEMU_IMG check $TEST_IMG 2>&1 | grep -v "refcount=1 reference=0" +_check_test_img 2>&1 | grep -v "refcount=1 reference=0" done done @@ -147,7 +147,7 @@ echo echo "Event: $event; errno: $errno; imm: $imm; once: $once; write $vmstate" $QEMU_IO -c "write $vmstate 0 64M" $BLKDBG_TEST_IMG | _filter_qemu_io -$QEMU_IMG check $TEST_IMG 2>&1 | grep -v "refcount=1 reference=0" +_check_test_img 2>&1 | grep -v "refcount=1 reference=0" done done @@ -186,7 +186,7 @@ echo echo "Event: $event; errno: $errno; imm: $imm; once: $once" $QEMU_IO -c "write -b 0 64k" $BLKDBG_TEST_IMG | _filter_qemu_io -$QEMU_IMG check $TEST_IMG 2>&1 | grep -v "refcount=1 reference=0" +_check_test_img 2>&1 | grep -v "refcount=1 reference=0" done done |