summaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests/302.out
diff options
context:
space:
mode:
authorNir Soffer2020-07-27 23:58:46 +0200
committerEric Blake2020-07-28 16:54:43 +0200
commit03a970bb6ffe17a3ae77d54d4127330cf9a73587 (patch)
treebc52d14b42ca868e09c47df2e3e64bc21b01216c /tests/qemu-iotests/302.out
parentiotests: Add more qemu_img helpers (diff)
downloadqemu-03a970bb6ffe17a3ae77d54d4127330cf9a73587.tar.gz
qemu-03a970bb6ffe17a3ae77d54d4127330cf9a73587.tar.xz
qemu-03a970bb6ffe17a3ae77d54d4127330cf9a73587.zip
iotests: Test convert to qcow2 compressed to NBD
Add test for "qemu-img convert -O qcow2 -c" to NBD target. The tests     create a OVA file and write compressed qcow2 disk content directly into the OVA file via qemu-nbd. Signed-off-by: Nir Soffer <nsoffer@redhat.com> Message-Id: <20200727215846.395443-5-nsoffer@redhat.com> Tested-by: Eric Blake <eblake@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/302.out')
-rw-r--r--tests/qemu-iotests/302.out31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/qemu-iotests/302.out b/tests/qemu-iotests/302.out
new file mode 100644
index 0000000000..e37d3a1030
--- /dev/null
+++ b/tests/qemu-iotests/302.out
@@ -0,0 +1,31 @@
+Start NBD server
+=== Target image info ===
+image: nbd+unix:///exp?socket=SOCK_DIR/PID-nbd-sock
+file format: raw
+virtual size: 448 KiB (458752 bytes)
+disk size: unavailable
+
+=== Converted image info ===
+image: nbd+unix:///exp?socket=SOCK_DIR/PID-nbd-sock
+file format: qcow2
+virtual size: 1 GiB (1073741824 bytes)
+disk size: unavailable
+cluster_size: 65536
+Format specific information:
+ compat: 1.1
+ compression type: zlib
+ lazy refcounts: false
+ refcount bits: 16
+ corrupt: false
+
+=== Converted image check ===
+No errors were found on the image.
+1/16384 = 0.01% allocated, 100.00% fragmented, 100.00% compressed clusters
+Image end offset: 393216
+
+=== Comparing to source disk ===
+Images are identical.
+
+Kill NBD server
+=== OVA file contents ===
+[{"name": "vm.ovf", "offset": 512, "size": 6}, {"name": "disk", "offset": 1536, "size": 393216}]