mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
iotests: Test post-backing convert target behavior
This adds a test case to 122 for what happens when you convert to a target with a backing file that is shorter than the target, and the image format does not support efficient zero writes (as is the case with qcow2 v2). Signed-off-by: Max Reitz <mreitz@redhat.com> Message-id: 20180501165750.19242-3-mreitz@redhat.com Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
351c8efff9
commit
0682854f89
2 changed files with 60 additions and 0 deletions
|
@ -28,6 +28,24 @@ read 3145728/3145728 bytes at offset 0
|
|||
read 3145728/3145728 bytes at offset 0
|
||||
3 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
|
||||
=== Converting to an overlay larger than its backing file ===
|
||||
|
||||
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=268435456
|
||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=805306368 backing_file=TEST_DIR/t.IMGFMT.base
|
||||
Offset Length File
|
||||
|
||||
wrote 1048576/1048576 bytes at offset 267386880
|
||||
1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
wrote 1048576/1048576 bytes at offset 629145600
|
||||
1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
Offset Length File
|
||||
0xff00000 0x100000 TEST_DIR/t.IMGFMT.base
|
||||
0x25800000 0x100000 TEST_DIR/t.IMGFMT.orig
|
||||
read 1048576/1048576 bytes at offset 267386880
|
||||
1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
read 1048576/1048576 bytes at offset 629145600
|
||||
1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
|
||||
=== Concatenate multiple source images ===
|
||||
|
||||
Formatting 'TEST_DIR/t.IMGFMT.1', fmt=IMGFMT size=4194304
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue