]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
qemu-iotests: add ./check -cloop support
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 26 Mar 2014 12:05:23 +0000 (13:05 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Apr 2014 11:59:46 +0000 (13:59 +0200)
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>
tests/qemu-iotests/common
tests/qemu-iotests/common.rc

index 5795358924872ef54f29ad3b941930e9b8cb0818..37e3bed40cdb24926f97ba3b98932b84463215fd 100644 (file)
@@ -137,6 +137,7 @@ common options
 check options
     -raw                test raw (default)
     -cow                test cow
+    -cloop              test cloop
     -qcow               test qcow
     -qcow2              test qcow2
     -qed                test qed
@@ -178,6 +179,12 @@ testlist options
             xpand=false
             ;;
 
+        -cloop)
+            IMGFMT=cloop
+            IMGFMT_GENERIC=false
+            xpand=false
+            ;;
+
         -qcow)
             IMGFMT=qcow
             xpand=false
index 881079bdb9ba964905daf94ce51c83516aa5359e..7f00883cad189bb41158dc2d2c2fc87713466e1e 100644 (file)
@@ -364,6 +364,9 @@ _fail()
 #
 _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
         if [ "$f" = "$IMGFMT" -o "$f" = "generic" -a "$IMGFMT_GENERIC" = "true" ]; then
             return