From: Kevin Wolf <kwolf@redhat.com>
To: hch@lst.de
Cc: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/3] qemu-iotests: 019: Make cluster size dynamic
Date: Mon, 28 Sep 2009 14:06:32 +0200 [thread overview]
Message-ID: <1254139592-4061-3-git-send-email-kwolf@redhat.com> (raw)
In-Reply-To: <1254139592-4061-1-git-send-email-kwolf@redhat.com>
Change the offsets for test requests according to CLUSTER_SIZE.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
019 | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
mode change 100644 => 100755 021
diff --git a/019 b/019
index c3bf950..20893c5 100755
--- a/019
+++ b/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/021 b/021
old mode 100644
new mode 100755
--
1.6.2.5
next prev parent reply other threads:[~2009-09-28 12:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-28 12:06 [Qemu-devel] [PATCH 0/3] qemu-iotests: Variable cluster size Kevin Wolf
2009-09-28 12:06 ` [Qemu-devel] [PATCH 1/3] qemu-iotests: Align test requests according to " Kevin Wolf
2009-09-28 12:06 ` Kevin Wolf [this message]
2009-09-28 12:13 ` [Qemu-devel] [PATCH 3/3] qemu-iotests: Tests on non-4k clusters Kevin Wolf
2009-10-01 17:47 ` [Qemu-devel] [PATCH 0/3] qemu-iotests: Variable cluster size Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1254139592-4061-3-git-send-email-kwolf@redhat.com \
--to=kwolf@redhat.com \
--cc=hch@lst.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).