diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-02-15 15:03:25 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-02-29 15:48:44 +0100 |
commit | 6ce2d77abeb7dece24612e884a74d149cdf52376 (patch) | |
tree | f50eeae10cd444d8afadf3ba3d083aedffc0906c /tests/qemu-iotests/028 | |
parent | 92ab69b61fe04d811378ae4eda9799a5ad6ddb14 (diff) | |
download | qemu-6ce2d77abeb7dece24612e884a74d149cdf52376.zip qemu-6ce2d77abeb7dece24612e884a74d149cdf52376.tar.gz qemu-6ce2d77abeb7dece24612e884a74d149cdf52376.tar.bz2 |
qemu-iotests: Test rebase with short backing file
This tests that qemu-img rebase doesn't assume that the backing file has
the same size as the image, but considers that it can be smaller.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'tests/qemu-iotests/028')
-rwxr-xr-x | tests/qemu-iotests/028 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qemu-iotests/028 b/tests/qemu-iotests/028 index 07c5bb6..b091ba9 100755 --- a/tests/qemu-iotests/028 +++ b/tests/qemu-iotests/028 @@ -96,6 +96,11 @@ io_zero readv $(( offset + 32 * 1024 )) 512 1024 32 _check_test_img +# Rebase it on top of its base image +$QEMU_IMG rebase -b $TEST_IMG.base $TEST_IMG + +_check_test_img + # success, all done echo "*** done" rm -f $seq.full |