diff options
author | Jeff Cody <jcody@redhat.com> | 2013-09-27 08:48:15 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-10-11 16:49:59 +0200 |
commit | 89e911816a1d5cdbc9480d5464c571d216cf5ea8 (patch) | |
tree | 5bc59797b135965f50037ab076abadec3dc9f993 /tests/qemu-iotests/sample_images | |
parent | 13164591f30ad95ae24f9892cf2caf779271a29b (diff) | |
download | qemu-89e911816a1d5cdbc9480d5464c571d216cf5ea8.zip qemu-89e911816a1d5cdbc9480d5464c571d216cf5ea8.tar.gz qemu-89e911816a1d5cdbc9480d5464c571d216cf5ea8.tar.bz2 |
block: qemu-iotests for vhdx, read sample dynamic image
This adds the VHDX format to the qemu-iotests format, and adds
a read test. The test reads from an existing sample image, that
was created with Hyper-V under Windwos Server 2012.
The image file is a 1GB dynamic image, with 32MB blocks.
The pattern 0xa5 exists from 0MB-33MB (past a block size boundary)
The pattern 0x96 exists from 33MB-66MB (past another block boundary,
and leaving a partial blank block)
From 66MB-1024MB, all reads should return 0.
Although 1GB dynamic image with 66MB of data, the bzip2'ed image
file size is only 874 bytes.
This also adds in the IMGFMT_GENERIC flag, so r/o images can be
tested (e.g. ./check -vhdx) without failing tests that assume
r/w support.
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/sample_images')
-rw-r--r-- | tests/qemu-iotests/sample_images/iotest-dynamic-1G.vhdx.bz2 | bin | 0 -> 874 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/qemu-iotests/sample_images/iotest-dynamic-1G.vhdx.bz2 b/tests/qemu-iotests/sample_images/iotest-dynamic-1G.vhdx.bz2 Binary files differnew file mode 100644 index 0000000..77d97a0 --- /dev/null +++ b/tests/qemu-iotests/sample_images/iotest-dynamic-1G.vhdx.bz2 |