From: Christian Brunner <chb@muc.de>
To: Kevin Wolf <kwolf@redhat.com>
Cc: aliguori@us.ibm.com, sheepdog@lists.wpkg.org,
chris.krumme@windriver.com, kvm@vger.kernel.org,
qemu-devel@nongnu.org,
MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Subject: [Qemu-devel] Re: [PATCH v5] block: add sheepdog driver for distributed storage support
Date: Thu, 17 Jun 2010 21:15:08 +0200 [thread overview]
Message-ID: <20100617191508.GA1591@chb-desktop> (raw)
In-Reply-To: <4C123BAC.9080008@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 708 bytes --]
On Fri, Jun 11, 2010 at 03:35:40PM +0200, Kevin Wolf wrote:
> Am 07.06.2010 20:00, schrieb MORITA Kazutaka:
>
> Also, I'd like to have qemu-iotests run on it before including it. IIRC,
> Christian has hacked on qemu-iotests to make it work with protocols for
> his rbd driver - Christian, can you provide us with your changes, so
> that they can be used for Sheepdog, too? Or if they are not too hacky,
> maybe you can even post them for inclusion in qemu-iotests?
>
Attached is a patch to make qemu-iotests work with the rbd driver. However
this is only a very basic hack for the rbd driver and not a generic patch
for protocol support. If you want, I can try to make it a bit more versatile.
hristian
[-- Attachment #2: 0001-a-small-hack-to-run-tests-aginst-the-rbd-driver.patch --]
[-- Type: text/x-diff, Size: 1592 bytes --]
>From 17031ac88d05b4796dc1f231317d843f26f1a331 Mon Sep 17 00:00:00 2001
From: Christian Brunner <chb@muc.de>
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
prev parent reply other threads:[~2010-06-17 19:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-07 18:00 [Qemu-devel] [PATCH v5] block: add sheepdog driver for distributed storage support MORITA Kazutaka
2010-06-11 13:35 ` [Qemu-devel] " Kevin Wolf
2010-06-14 19:48 ` MORITA Kazutaka
2010-06-15 8:24 ` Kevin Wolf
2010-06-15 12:33 ` MORITA Kazutaka
2010-06-17 19:15 ` Christian Brunner [this message]
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=20100617191508.GA1591@chb-desktop \
--to=chb@muc.de \
--cc=aliguori@us.ibm.com \
--cc=chris.krumme@windriver.com \
--cc=kvm@vger.kernel.org \
--cc=kwolf@redhat.com \
--cc=morita.kazutaka@lab.ntt.co.jp \
--cc=qemu-devel@nongnu.org \
--cc=sheepdog@lists.wpkg.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).