From patchwork Mon Sep 28 12:06:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 34378 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 856CFB7C00 for ; Mon, 28 Sep 2009 22:10:55 +1000 (EST) Received: from localhost ([127.0.0.1]:39187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsF48-0005uJ-Qi for incoming@patchwork.ozlabs.org; Mon, 28 Sep 2009 08:10:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsF1D-000578-Pd for qemu-devel@nongnu.org; Mon, 28 Sep 2009 08:07:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsF19-000547-20 for qemu-devel@nongnu.org; Mon, 28 Sep 2009 08:07:50 -0400 Received: from [199.232.76.173] (port=52602 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsF18-000540-ET for qemu-devel@nongnu.org; Mon, 28 Sep 2009 08:07:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65342) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsF17-0003v5-To for qemu-devel@nongnu.org; Mon, 28 Sep 2009 08:07:46 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8SC7h8f008952; Mon, 28 Sep 2009 08:07:43 -0400 Received: from localhost.localdomain (vpn1-4-113.ams2.redhat.com [10.36.4.113]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8SC7bUP030601; Mon, 28 Sep 2009 08:07:42 -0400 From: Kevin Wolf To: hch@lst.de Date: Mon, 28 Sep 2009 14:06:32 +0200 Message-Id: <1254139592-4061-3-git-send-email-kwolf@redhat.com> In-Reply-To: <1254139592-4061-1-git-send-email-kwolf@redhat.com> References: <1254139592-4061-1-git-send-email-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Kevin Wolf , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 2/3] qemu-iotests: 019: Make cluster size dynamic X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Change the offsets for test requests according to CLUSTER_SIZE. Signed-off-by: Kevin Wolf --- 019 | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 021 diff --git a/021 b/021 old mode 100644 new mode 100755 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