aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-10-01 14:30:13 -0300
committerKevin Wolf <kwolf@redhat.com>2012-02-22 16:17:02 +0100
commit3da9c8fb028e48acd4872efb27c5101704563802 (patch)
tree3d54fc16e8e428b8937a4855e7302f0e4ded435c /tests/qemu-iotests
parent8fc1024ceec96d2ec2d2a0296220075e06a6c756 (diff)
qemu-iotests: 019: Make cluster size dynamic
Change the offsets for test requests according to CLUSTER_SIZE. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tests/qemu-iotests')
-rwxr-xr-xtests/qemu-iotests/01912
-rwxr-xr-x[-rw-r--r--]tests/qemu-iotests/0210
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/qemu-iotests/019 b/tests/qemu-iotests/019
index c3bf950fc..20893c5fa 100755
--- a/tests/qemu-iotests/019
+++ b/tests/qemu-iotests/019
@@ -60,7 +60,7 @@ for offset in $TEST_OFFSETS; do
io writev $(( offset )) 512 1024 64
# Complete backing clusters
- io writev $(( offset + 1024 * 1024)) 65536 65536 1
+ io writev $(( offset + 1024 * 1024)) $CLUSTER_SIZE $CLUSTER_SIZE 1
done
_check_test_img
@@ -78,7 +78,7 @@ for offset in $TEST_OFFSETS; do
io writev $(( offset + 512 )) 512 1024 64
# Complete test image clusters
- io writev $(( offset + 1024 * 1024 + 65536)) 65536 65536 1
+ io writev $(( offset + 1024 * 1024 + $CLUSTER_SIZE)) $CLUSTER_SIZE $CLUSTER_SIZE 1
done
_check_test_img
@@ -89,7 +89,7 @@ echo "Checking if backing clusters are allocated when they shouldn't"
echo
for offset in $TEST_OFFSETS; do
# Complete backing clusters
- is_allocated $(( offset + 1024 * 1024)) 65536 65536 1
+ is_allocated $(( offset + 1024 * 1024)) $CLUSTER_SIZE $CLUSTER_SIZE 1
done
echo "Reading"
@@ -101,11 +101,11 @@ for offset in $TEST_OFFSETS; do
io readv $(( offset + 512 )) 512 1024 64
# Complete test image clusters
- io readv $(( offset + 1024 * 1024)) 65536 65536 1
- io readv $(( offset + 1024 * 1024 + 65536)) 65536 65536 1
+ io readv $(( offset + 1024 * 1024)) $CLUSTER_SIZE $CLUSTER_SIZE 1
+ io readv $(( offset + 1024 * 1024 + $CLUSTER_SIZE)) $CLUSTER_SIZE $CLUSTER_SIZE 1
# Empty sectors
- io_zero readv $(( offset + 1024 * 1024 + 65536 * 4 )) 65536 65536 1
+ io_zero readv $(( offset + 1024 * 1024 + $CLUSTER_SIZE * 4 )) $CLUSTER_SIZE $CLUSTER_SIZE 1
done
_check_test_img
diff --git a/tests/qemu-iotests/021 b/tests/qemu-iotests/021
index c0241aebe..c0241aebe 100644..100755
--- a/tests/qemu-iotests/021
+++ b/tests/qemu-iotests/021