summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/common.rc
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2010-10-31 16:10:20 -0400
committerKevin Wolf <kwolf@redhat.com>2012-02-23 10:29:46 +0100
commitf5a4bbd91348ad765ac2a5d760216f2c3e0261f4 (patch)
tree3830b4c4ae248ae8addc700d01eafd224086b24c /tests/qemu-iotests/common.rc
parent2684871af50cd8efbe753abe333f0acca6d9ab98 (diff)
qemu-iotests: add support for qed format
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tests/qemu-iotests/common.rc')
-rw-r--r--tests/qemu-iotests/common.rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index da58f92561..f2db92e985 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/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"
}