mirror of https://github.com/xemu-project/xemu.git
qemu-iotests: add ./check -cloop support
Add the cloop block driver to qemu-iotests. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
c5a33ee9ee
commit
47f73da0a7
|
@ -137,6 +137,7 @@ common options
|
||||||
check options
|
check options
|
||||||
-raw test raw (default)
|
-raw test raw (default)
|
||||||
-cow test cow
|
-cow test cow
|
||||||
|
-cloop test cloop
|
||||||
-qcow test qcow
|
-qcow test qcow
|
||||||
-qcow2 test qcow2
|
-qcow2 test qcow2
|
||||||
-qed test qed
|
-qed test qed
|
||||||
|
@ -178,6 +179,12 @@ testlist options
|
||||||
xpand=false
|
xpand=false
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
-cloop)
|
||||||
|
IMGFMT=cloop
|
||||||
|
IMGFMT_GENERIC=false
|
||||||
|
xpand=false
|
||||||
|
;;
|
||||||
|
|
||||||
-qcow)
|
-qcow)
|
||||||
IMGFMT=qcow
|
IMGFMT=qcow
|
||||||
xpand=false
|
xpand=false
|
||||||
|
|
|
@ -364,6 +364,9 @@ _fail()
|
||||||
#
|
#
|
||||||
_supported_fmt()
|
_supported_fmt()
|
||||||
{
|
{
|
||||||
|
# "generic" is suitable for most image formats. For some formats it doesn't
|
||||||
|
# work, however (most notably read-only formats), so they can opt out by
|
||||||
|
# setting IMGFMT_GENERIC to false.
|
||||||
for f; do
|
for f; do
|
||||||
if [ "$f" = "$IMGFMT" -o "$f" = "generic" -a "$IMGFMT_GENERIC" = "true" ]; then
|
if [ "$f" = "$IMGFMT" -o "$f" = "generic" -a "$IMGFMT_GENERIC" = "true" ]; then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue