mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
iotests: add 288 luks qemu-img measure test
This test exercises the block/crypto.c "luks" block driver .bdrv_measure() code. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200221112522.1497712-5-stefanha@redhat.com> [mreitz: Renamed test from 282 to 288] Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
c3673dcf08
commit
c13de3b32f
3 changed files with 124 additions and 0 deletions
30
tests/qemu-iotests/288.out
Normal file
30
tests/qemu-iotests/288.out
Normal file
|
@ -0,0 +1,30 @@
|
|||
QA output created by 288
|
||||
== measure 1G image file ==
|
||||
|
||||
required size: 1075810304
|
||||
fully allocated size: 1075810304
|
||||
|
||||
== create 1G image file (size should be no greater than measured) ==
|
||||
|
||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
|
||||
image file size in bytes: 1075810304
|
||||
|
||||
== modified 1G image file (size should be no greater than measured) ==
|
||||
|
||||
wrote 1024/1024 bytes at offset 65536
|
||||
1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
image file size in bytes: 1075810304
|
||||
|
||||
== measure preallocation=falloc 1G image file ==
|
||||
|
||||
required size: 1075810304
|
||||
fully allocated size: 1075810304
|
||||
|
||||
== measure with input image file ==
|
||||
|
||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
|
||||
wrote 1024/1024 bytes at offset 65536
|
||||
1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
required size: 1075810304
|
||||
fully allocated size: 1075810304
|
||||
*** done
|
Loading…
Add table
Add a link
Reference in a new issue