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:
Stefan Hajnoczi 2020-02-21 11:25:22 +00:00 committed by Max Reitz
parent c3673dcf08
commit c13de3b32f
3 changed files with 124 additions and 0 deletions

View 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