qemu/tests/qemu-iotests/314.out
Andrey Drobyshev 87fe52ceca iotests: add tests for "qemu-img rebase" with compression
The test cases considered so far:

314 (new test suite):

1. Check that compression mode isn't compatible with "-f raw" (raw
   format doesn't support compression).
2. Check that rebasing an image onto no backing file preserves the data
   and writes the copied clusters actually compressed.
3. Same as 2, but with a raw backing file (i.e. the clusters copied from the
   backing are originally uncompressed -- we check they end up compressed
   after being merged).
4. Remove a single delta from a backing chain, perform the same checks
   as in 2.
5. Check that even when backing and overlay are initially uncompressed,
   copied clusters end up compressed when rebase with compression is
   performed.

271:

1. Check that when target image has subclusters, rebase with compression
   will make an entire cluster containing the written subcluster
   compressed.

Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Message-ID: <20230919165804.439110-9-andrey.drobyshev@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2023-10-31 13:51:28 +01:00

76 lines
3.4 KiB
Plaintext

QA output created by 314
=== Testing compressed rebase format compatibility ===
Formatting 'TEST_DIR/t.IMGFMT', fmt=raw size=50331648
qemu-img: Compression not supported for this file format
=== Testing rebase with compression onto no backing file ===
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=50331648
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=50331648 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
wrote 25165824/25165824 bytes at offset 0
24 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 25165824/25165824 bytes at offset 25165824
24 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 25165824/25165824 bytes at offset 0
24 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 25165824/25165824 bytes at offset 25165824
24 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
No errors were found on the image.
768/768 = 100.00% allocated, 100.00% fragmented, 100.00% compressed clusters
Image end offset: 458752
=== Testing rebase with compression with raw backing file ===
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=25165824
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=50331648 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
wrote 25165824/25165824 bytes at offset 0
24 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 25165824/25165824 bytes at offset 25165824
24 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 25165824/25165824 bytes at offset 0
24 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 25165824/25165824 bytes at offset 25165824
24 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
No errors were found on the image.
768/768 = 100.00% allocated, 100.00% fragmented, 100.00% compressed clusters
Image end offset: 458752
=== Testing compressed rebase removing single delta from the chain ===
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=50331648
Formatting 'TEST_DIR/t.IMGFMT.itmd', fmt=IMGFMT size=50331648 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=50331648 backing_file=TEST_DIR/t.IMGFMT.itmd backing_fmt=IMGFMT
wrote 16777216/16777216 bytes at offset 0
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 16777216/16777216 bytes at offset 16777216
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 16777216/16777216 bytes at offset 33554432
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 16777216/16777216 bytes at offset 0
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 16777216/16777216 bytes at offset 16777216
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 16777216/16777216 bytes at offset 33554432
16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
No errors were found on the image.
512/768 = 66.67% allocated, 100.00% fragmented, 100.00% compressed clusters
Image end offset: 458752
=== Testing compressed rebase with unaligned unmerged data ===
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=65536
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=65536 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
wrote 32767/32767 bytes at offset 0
31.999 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 32767/32767 bytes at offset 0
31.999 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
read 32769/32769 bytes at offset 32767
32.001 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
No errors were found on the image.
1/1 = 100.00% allocated, 100.00% fragmented, 100.00% compressed clusters
Image end offset: 393216
*** done