mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
3b5fe6e60c
commit
8fc1024cee
10 changed files with 59 additions and 42 deletions
|
@ -55,6 +55,10 @@ _make_test_img()
|
|||
# at least one argument (the image size) needs to be added
|
||||
local extra_img_options=$*
|
||||
|
||||
if [ "$IMGFMT" = "qcow2" -a -n "$CLUSTER_SIZE" ]; then
|
||||
extra_img_options="-o cluster_size=$CLUSTER_SIZE $extra_img_options"
|
||||
fi
|
||||
|
||||
# XXX(hch): have global image options?
|
||||
$QEMU_IMG create -f $IMGFMT $TEST_IMG $extra_img_options | \
|
||||
sed -e "s#$TEST_DIR#TEST_DIR#g" | \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue