storage: Upgrade default qcow2 verion to 1.1

Change the default to modern qcow2 as it's supported by all qemu
versions supported by libvirt and in fact 'qemu-img' already defaults to
the new format for a long time.

Some Unittests require changes to pass, now that version 1.1 is default.
Unittests like `qcow2-1.1.argv` may not be relevant anymore, but this
patch doesn't affect them.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/602
Signed-off-by: Abhiram Tilak <atp.exp@gmail.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Abhiram Tilak
2024-03-06 01:20:13 +05:30
committed by Peter Krempa
parent 47a8f6a99b
commit f432114d9c
13 changed files with 13 additions and 13 deletions

View File

@@ -2,6 +2,6 @@ qemu-img \
convert \
-f raw \
-O qcow2 \
-o preallocation=metadata,compat=0.10 \
-o preallocation=metadata,compat=1.1 \
/var/lib/libvirt/images/sparse.img \
/var/lib/libvirt/images/OtherDemo.img