From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59549 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7pUQ-0007pk-2p for qemu-devel@nongnu.org; Mon, 18 Oct 2010 09:10:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7pUN-0006zG-Om for qemu-devel@nongnu.org; Mon, 18 Oct 2010 09:10:57 -0400 Received: from mtagate4.uk.ibm.com ([194.196.100.164]:55867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7pUN-0006yc-HV for qemu-devel@nongnu.org; Mon, 18 Oct 2010 09:10:55 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate4.uk.ibm.com (8.13.1/8.13.1) with ESMTP id o9IDArLO010126 for ; Mon, 18 Oct 2010 13:10:53 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9IDApkm3903568 for ; Mon, 18 Oct 2010 14:10:53 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o9IDAoRX004888 for ; Mon, 18 Oct 2010 14:10:51 +0100 From: Stefan Hajnoczi Date: Mon, 18 Oct 2010 14:10:44 +0100 Message-Id: <1287407444-27855-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] add support for qed format List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Christoph Hellwig , Stefan Hajnoczi Note that 019 current fails for both qcow2 and qed due to an outdated .out file. Signed-off-by: Stefan Hajnoczi --- 017 | 2 +- 018 | 2 +- 019 | 2 +- 020 | 2 +- 024 | 4 ++-- 027 | 2 +- 028 | 2 +- common | 6 ++++++ common.rc | 3 ++- 9 files changed, 16 insertions(+), 9 deletions(-) diff --git a/017 b/017 index d861961..29dd53f 100755 --- a/017 +++ b/017 @@ -40,7 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.pattern # Any format supporting backing files -_supported_fmt qcow qcow2 vmdk +_supported_fmt qcow qcow2 vmdk qed _supported_os Linux TEST_OFFSETS="0 4294967296" diff --git a/018 b/018 index 0a348fe..f155b49 100755 --- a/018 +++ b/018 @@ -40,7 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.pattern # Any format supporting backing files -_supported_fmt qcow qcow2 vmdk +_supported_fmt qcow qcow2 vmdk qed _supported_os Linux TEST_OFFSETS="0 4294967296" diff --git a/019 b/019 index 896b8d9..cce529a 100755 --- a/019 +++ b/019 @@ -44,7 +44,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.pattern # Any format supporting backing files -_supported_fmt qcow qcow2 vmdk +_supported_fmt qcow qcow2 vmdk qed _supported_os Linux TEST_OFFSETS="0 4294967296" diff --git a/020 b/020 index 546e074..b065a53 100755 --- a/020 +++ b/020 @@ -42,7 +42,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.pattern # Any format supporting backing files -_supported_fmt qcow qcow2 vmdk +_supported_fmt qcow qcow2 vmdk qed _supported_os Linux TEST_OFFSETS="0 4294967296" diff --git a/024 b/024 index 48680ca..ff6e984 100755 --- a/024 +++ b/024 @@ -41,8 +41,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.filter . ./common.pattern -# Currently only qcow2 supports rebasing -_supported_fmt qcow2 +# Currently only qcow2 and qed support rebasing +_supported_fmt qcow2 qed _supported_os Linux CLUSTER_SIZE=65536 diff --git a/027 b/027 index 67ecffc..543c48f 100755 --- a/027 +++ b/027 @@ -38,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.rc . ./common.filter -_supported_fmt vmdk qcow qcow2 +_supported_fmt vmdk qcow qcow2 qed _supported_os Linux diff --git a/028 b/028 index 0ca220e..cb8b255 100755 --- a/028 +++ b/028 @@ -44,7 +44,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # Any format supporting backing files except vmdk and qcow which do not support # smaller backing files. -_supported_fmt qcow2 +_supported_fmt qcow2 qed _supported_os Linux # Choose a size that is not necessarily a cluster size multiple for image diff --git a/common b/common index 988fd5e..d95ba4c 100644 --- a/common +++ b/common @@ -119,6 +119,7 @@ check options -cow test cow -qcow test qcow -qcow2 test qcow2 + -qed test qed -vdi test vdi -vpc test vpc -vmdk test vmdk @@ -158,6 +159,11 @@ testlist options xpand=false ;; + -qed) + IMGFMT=qed + xpand=false + ;; + -vdi) IMGFMT=vdi xpand=false diff --git a/common.rc b/common.rc index da58f92..f2db92e 100644 --- a/common.rc +++ b/common.rc @@ -55,7 +55,7 @@ _make_test_img() # at least one argument (the image size) needs to be added local extra_img_options=$* - if [ "$IMGFMT" = "qcow2" -a -n "$CLUSTER_SIZE" ]; then + if [ \( "$IMGFMT" = "qcow2" -o "$IMGFMT" = "qed" \) -a -n "$CLUSTER_SIZE" ]; then extra_img_options="-o cluster_size=$CLUSTER_SIZE $extra_img_options" fi @@ -65,6 +65,7 @@ _make_test_img() sed -e "s#$IMGFMT#IMGFMT#g" | \ sed -e "s# encryption=off##g" | \ sed -e "s# cluster_size=0##g" | \ + sed -e "s# table_size=0##g" | \ sed -e "s# compat6=off##g" | \ sed -e "s# static=off##g" } -- 1.7.1