diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-10-01 14:29:59 -0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-02-22 16:17:02 +0100 |
commit | 8fc1024ceec96d2ec2d2a0296220075e06a6c756 (patch) | |
tree | 36933fcfcb4467e39a8122e890189c44d0b739dc /tests/qemu-iotests/022 | |
parent | 3b5fe6e60c4e2d4b47425ba967a48cd216efd6f8 (diff) | |
download | qemu-8fc1024ceec96d2ec2d2a0296220075e06a6c756.zip qemu-8fc1024ceec96d2ec2d2a0296220075e06a6c756.tar.gz qemu-8fc1024ceec96d2ec2d2a0296220075e06a6c756.tar.bz2 |
qemu-iotests: align test requests according to cluster size
Change the io_test and io_test2 functions to take the cluster size of the image
and the number of test requests to issue. Tests are changed to specify a
cluster size (usually 4k), but expected test results stay the same for now
(apart from qemu-img printing the cluster size now).
Based on a patch written by Christoph Hellwig.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tests/qemu-iotests/022')
-rwxr-xr-x | tests/qemu-iotests/022 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/qemu-iotests/022 b/tests/qemu-iotests/022 index ca5df99..ccf2319 100755 --- a/tests/qemu-iotests/022 +++ b/tests/qemu-iotests/022 @@ -46,6 +46,7 @@ _supported_fmt qcow2 _supported_os Linux TEST_OFFSETS="10485760 4294967296" +CLUSTER_SIZE="4096" _make_test_img 6G @@ -54,8 +55,8 @@ echo for offset in $TEST_OFFSETS; do echo "At offset $offset:" - io_test "write -b" $offset - io_test "read -b" $offset + io_test "write -b" $offset $CLUSTER_SIZE 8 + io_test "read -b" $offset $CLUSTER_SIZE 8 _check_test_img done |