mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
iotests: declare lack of support for compresion_type in IMGOPTS
compression_type can't be used if we want to create image with compat=0.10. So, skip these tests, not many of them. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20211223160144.1097696-20-vsementsov@virtuozzo.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
This commit is contained in:
parent
da87d5f83a
commit
e287a351db
|
@ -42,8 +42,9 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
|||
_supported_fmt qcow2
|
||||
_supported_proto file fuse
|
||||
# We want to test compat=0.10, which does not support external data
|
||||
# files or refcount widths other than 16
|
||||
_unsupported_imgopts data_file 'refcount_bits=\([^1]\|.\([^6]\|$\)\)'
|
||||
# files or refcount widths other than 16 or compression type
|
||||
_unsupported_imgopts data_file compression_type \
|
||||
'refcount_bits=\([^1]\|.\([^6]\|$\)\)'
|
||||
|
||||
CLUSTER_SIZE=65536
|
||||
|
||||
|
|
|
@ -41,8 +41,9 @@ _supported_fmt qcow2
|
|||
_supported_proto file
|
||||
# A compat=0.10 image is created in this test which does not support anything
|
||||
# other than refcount_bits=16;
|
||||
# it also will not support an external data file
|
||||
_unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' data_file
|
||||
# it also will not support an external data file and compression type
|
||||
_unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' data_file \
|
||||
compression_type
|
||||
_require_drivers nbd
|
||||
|
||||
if [ "$QEMU_DEFAULT_MACHINE" = "pc" ]; then
|
||||
|
|
|
@ -48,7 +48,11 @@ _supported_os Linux
|
|||
# not work with it;
|
||||
# we have explicit tests for various cluster sizes, the remaining tests
|
||||
# require the default 64k cluster
|
||||
_unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' data_file cluster_size
|
||||
# we don't have explicit tests for zstd qcow2 compression type, as zstd may be
|
||||
# not compiled in. And we can't create compat images with comression type
|
||||
# extension
|
||||
_unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' data_file \
|
||||
cluster_size compression_type
|
||||
|
||||
echo
|
||||
echo "=== Testing version downgrade with zero expansion ==="
|
||||
|
|
|
@ -43,7 +43,8 @@ _supported_proto file fuse
|
|||
# This test will set refcount_bits on its own which would conflict with the
|
||||
# manual setting; compat will be overridden as well;
|
||||
# and external data files do not work well with our refcount testing
|
||||
_unsupported_imgopts refcount_bits 'compat=0.10' data_file
|
||||
# also, compression type is not supported with compat=0.10 used in test
|
||||
_unsupported_imgopts refcount_bits 'compat=0.10' data_file compression_type
|
||||
|
||||
print_refcount_bits()
|
||||
{
|
||||
|
|
|
@ -41,7 +41,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
|||
_supported_fmt qcow2
|
||||
_supported_proto file fuse
|
||||
_supported_os Linux
|
||||
_unsupported_imgopts 'compat=0.10' refcount_bits data_file
|
||||
_unsupported_imgopts 'compat=0.10' refcount_bits data_file compression_type
|
||||
|
||||
echo
|
||||
echo "### Test 'qemu-io -c discard' on a QCOW2 image without a backing file"
|
||||
|
|
Loading…
Reference in a new issue