. ./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"
. ./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"
. ./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"
. ./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"
. ./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
. ./common.rc
. ./common.filter
-_supported_fmt vmdk qcow qcow2
+_supported_fmt vmdk qcow qcow2 qed
_supported_os Linux
# 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
-cow test cow
-qcow test qcow
-qcow2 test qcow2
+ -qed test qed
-vdi test vdi
-vpc test vpc
-vmdk test vmdk
xpand=false
;;
+ -qed)
+ IMGFMT=qed
+ xpand=false
+ ;;
+
-vdi)
IMGFMT=vdi
xpand=false
# 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
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"
}