[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 17/19] iotests 60: more accurate set dirty bit in qcow2 header
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v5 17/19] iotests 60: more accurate set dirty bit in qcow2 header |
Date: |
Thu, 23 Dec 2021 17:01:42 +0100 |
Don't touch other incompatible bits, like compression-type. This makes
the test pass with IMGOPTS='compression_type=zstd'.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
---
tests/qemu-iotests/060 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/060 b/tests/qemu-iotests/060
index d1e3204d4e..df87d600f7 100755
--- a/tests/qemu-iotests/060
+++ b/tests/qemu-iotests/060
@@ -326,7 +326,7 @@ _make_test_img 64M
# Let the refblock appear unaligned
poke_file "$TEST_IMG" "$rt_offset" "\x00\x00\x00\x00\xff\xff\x2a\x00"
# Mark the image dirty, thus forcing an automatic check when opening it
-poke_file "$TEST_IMG" 72 "\x00\x00\x00\x00\x00\x00\x00\x01"
+$PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 0
# Open the image (qemu should refuse to do so)
$QEMU_IO -c close "$TEST_IMG" 2>&1 | _filter_testdir | _filter_imgfmt
--
2.31.1
- [PATCH v5 05/19] iotests: drop qemu_img_verbose() helper, (continued)
- [PATCH v5 05/19] iotests: drop qemu_img_verbose() helper, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 07/19] iotest 303: explicit compression type, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 06/19] iotests.py: rewrite default luks support in qemu_img, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 08/19] iotest 065: explicit compression type, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 11/19] iotest 302: use img_info_log() helper, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 10/19] iotests.py: filter compression type out, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 12/19] qcow2: simple case support for downgrading of qcow2 images with zstd, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 09/19] iotests.py: filter out successful output of qemu-img create, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 13/19] iotests/common.rc: introduce _qcow2_dump_header helper, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 14/19] iotests: massive use _qcow2_dump_header, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 17/19] iotests 60: more accurate set dirty bit in qcow2 header,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v5 15/19] iotest 39: use _qcow2_dump_header, Vladimir Sementsov-Ogievskiy, 2021/12/23
- [PATCH v5 16/19] iotests: bash tests: filter compression type, Vladimir Sementsov-Ogievskiy, 2021/12/23