From patchwork Thu Jun 17 19:15:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brunner X-Patchwork-Id: 106729 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5HJFGRs015191 for ; Thu, 17 Jun 2010 19:15:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760679Ab0FQTPO (ORCPT ); Thu, 17 Jun 2010 15:15:14 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:22929 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757417Ab0FQTPM (ORCPT ); Thu, 17 Jun 2010 15:15:12 -0400 Received: by fg-out-1718.google.com with SMTP id d23so127721fga.1 for ; Thu, 17 Jun 2010 12:15:11 -0700 (PDT) Received: by 10.87.1.7 with SMTP id d7mr70123fgi.75.1276802110896; Thu, 17 Jun 2010 12:15:10 -0700 (PDT) Received: from chb-desktop (e181020234.adsl.alicedsl.de [85.181.20.234]) by mx.google.com with ESMTPS id 3sm15655395fge.15.2010.06.17.12.15.09 (version=SSLv3 cipher=RC4-MD5); Thu, 17 Jun 2010 12:15:10 -0700 (PDT) Date: Thu, 17 Jun 2010 21:15:08 +0200 From: Christian Brunner To: Kevin Wolf Cc: MORITA Kazutaka , chris.krumme@windriver.com, aliguori@us.ibm.com, qemu-devel@nongnu.org, kvm@vger.kernel.org, sheepdog@lists.wpkg.org Subject: Re: [PATCH v5] block: add sheepdog driver for distributed storage support Message-ID: <20100617191508.GA1591@chb-desktop> References: <1275933621-404-1-git-send-email-morita.kazutaka@lab.ntt.co.jp> <4C123BAC.9080008@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4C123BAC.9080008@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 17 Jun 2010 19:15:17 +0000 (UTC) From 17031ac88d05b4796dc1f231317d843f26f1a331 Mon Sep 17 00:00:00 2001 From: Christian Brunner Date: Thu, 3 Jun 2010 21:05:24 +0200 Subject: [PATCH] a small hack to run tests aginst the rbd driver --- common | 6 ++++++ common.rc | 14 +++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/common b/common index 988fd5e..df4e6c9 100644 --- a/common +++ b/common @@ -122,6 +122,7 @@ check options -vdi test vdi -vpc test vpc -vmdk test vmdk + -rbd test rbd -xdiff graphical mode diff -nocache use O_DIRECT on backing file -misalign misalign memory allocations @@ -173,6 +174,11 @@ testlist options xpand=false ;; + -rbd) + IMGFMT=rbd + xpand=false + ;; + -nocache) QEMU_IO_OPTIONS="$QEMU_IO_OPTIONS --nocache" xpand=false diff --git a/common.rc b/common.rc index da58f92..2bde819 100644 --- a/common.rc +++ b/common.rc @@ -47,6 +47,10 @@ fi # make sure we have a standard umask umask 022 +if [ "$IMGFMT" = "rbd" ]; then + TEST_DIR=rbd:rbd +fi + TEST_IMG=$TEST_DIR/t.$IMGFMT _make_test_img() @@ -71,9 +75,13 @@ _make_test_img() _cleanup_test_img() { - rm -f $TEST_DIR/t.$IMGFMT - rm -f $TEST_DIR/t.$IMGFMT.orig - rm -f $TEST_DIR/t.$IMGFMT.base + if [ "$IMGFMT" = "rbd" ]; then + rbdtool --delete t.$IMGFMT + else + rm -f $TEST_DIR/t.$IMGFMT + rm -f $TEST_DIR/t.$IMGFMT.orig + rm -f $TEST_DIR/t.$IMGFMT.base + fi } _check_test_img() -- 1.7.0.4