|
@@ -61,13 +61,13 @@ echo
|
|
echo "=== Testing compression type incompatible bit setting for zlib ==="
|
|
echo "=== Testing compression type incompatible bit setting for zlib ==="
|
|
echo
|
|
echo
|
|
_make_test_img -o compression_type=zlib 64M
|
|
_make_test_img -o compression_type=zlib 64M
|
|
-_qcow2_dump_header | grep incompatible_features
|
|
|
|
|
|
+_qcow2_dump_header --no-filter-compression | grep incompatible_features
|
|
|
|
|
|
echo
|
|
echo
|
|
echo "=== Testing compression type incompatible bit setting for zstd ==="
|
|
echo "=== Testing compression type incompatible bit setting for zstd ==="
|
|
echo
|
|
echo
|
|
_make_test_img -o compression_type=zstd 64M
|
|
_make_test_img -o compression_type=zstd 64M
|
|
-_qcow2_dump_header | grep incompatible_features
|
|
|
|
|
|
+_qcow2_dump_header --no-filter-compression | grep incompatible_features
|
|
|
|
|
|
echo
|
|
echo
|
|
echo "=== Testing zlib with incompatible bit set ==="
|
|
echo "=== Testing zlib with incompatible bit set ==="
|
|
@@ -75,7 +75,7 @@ echo
|
|
_make_test_img -o compression_type=zlib 64M
|
|
_make_test_img -o compression_type=zlib 64M
|
|
$PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 3
|
|
$PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 3
|
|
# to make sure the bit was actually set
|
|
# to make sure the bit was actually set
|
|
-_qcow2_dump_header | grep incompatible_features
|
|
|
|
|
|
+_qcow2_dump_header --no-filter-compression | grep incompatible_features
|
|
|
|
|
|
if $QEMU_IMG info "$TEST_IMG" >/dev/null 2>&1 ; then
|
|
if $QEMU_IMG info "$TEST_IMG" >/dev/null 2>&1 ; then
|
|
echo "Error: The image opened successfully. The image must not be opened."
|
|
echo "Error: The image opened successfully. The image must not be opened."
|
|
@@ -87,7 +87,7 @@ echo
|
|
_make_test_img -o compression_type=zstd 64M
|
|
_make_test_img -o compression_type=zstd 64M
|
|
$PYTHON qcow2.py "$TEST_IMG" set-header incompatible_features 0
|
|
$PYTHON qcow2.py "$TEST_IMG" set-header incompatible_features 0
|
|
# to make sure the bit was actually unset
|
|
# to make sure the bit was actually unset
|
|
-_qcow2_dump_header | grep incompatible_features
|
|
|
|
|
|
+_qcow2_dump_header --no-filter-compression | grep incompatible_features
|
|
|
|
|
|
if $QEMU_IMG info "$TEST_IMG" >/dev/null 2>&1 ; then
|
|
if $QEMU_IMG info "$TEST_IMG" >/dev/null 2>&1 ; then
|
|
echo "Error: The image opened successfully. The image must not be opened."
|
|
echo "Error: The image opened successfully. The image must not be opened."
|