diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-10-01 14:30:13 -0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2009-10-01 14:30:13 -0300 |
commit | b86994fbb0eb48b7ce3ad06b90d0da0c5af428ad (patch) | |
tree | e8b00b5c999e5159c72ea68120d7834adcd08547 | |
parent | cbf9332efd04e02c488f96bf358c70c68ebee865 (diff) | |
download | qemu-iotests-b86994fbb0eb48b7ce3ad06b90d0da0c5af428ad.tar.gz |
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>
-rwxr-xr-x | 019 | 12 | ||||
-rwxr-xr-x[-rw-r--r--] | 021 | 0 |
2 files changed, 6 insertions, 6 deletions
@@ -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 |