From: Jeff Cody <jcody@redhat.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, stefanha@redhat.com
Subject: [Qemu-devel] [PATCH v8 18/19] block: qemu-iotests for vhdx, add write test support
Date: Wed, 30 Oct 2013 10:44:55 -0400 [thread overview]
Message-ID: <53624e00e5d3c5878b935af649e02ee217e8db57.1383143104.git.jcody@redhat.com> (raw)
In-Reply-To: <cover.1383143104.git.jcody@redhat.com>
In-Reply-To: <cover.1383143104.git.jcody@redhat.com>
This removes the IMGFMT_GENERIC blocker for read-only, so existing
iotests run read/write tests for vhdx images created by qemu-img (e.g.
tests 001, 002, 003).
In addition, this updates the sample image test for the Hyper-V
created image, to verify we can write it as well.
Signed-off-by: Jeff Cody <jcody@redhat.com>
---
tests/qemu-iotests/064 | 11 +++++++++++
tests/qemu-iotests/064.out | 14 ++++++++++++++
tests/qemu-iotests/common | 1 -
3 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/064 b/tests/qemu-iotests/064
index 6789aa6..1c74c31 100755
--- a/tests/qemu-iotests/064
+++ b/tests/qemu-iotests/064
@@ -56,6 +56,17 @@ echo
echo "=== Verify pattern 0x00, 66M - 1024M ==="
$QEMU_IO -r -c "read -pP 0x00 66M 958M" "$TEST_IMG" | _filter_qemu_io
+echo
+echo "=== Verify pattern write, 0xc3 99M-157M ==="
+$QEMU_IO -c "write -pP 0xc3 99M 58M" "$TEST_IMG" | _filter_qemu_io
+# first verify we didn't write where we should not have
+$QEMU_IO -c "read -pP 0xa5 0 33M" "$TEST_IMG" | _filter_qemu_io
+$QEMU_IO -c "read -pP 0x96 33M 33M" "$TEST_IMG" | _filter_qemu_io
+$QEMU_IO -c "read -pP 0x00 66M 33M" "$TEST_IMG" | _filter_qemu_io
+$QEMU_IO -c "read -pP 0x00 157MM 867MM" "$TEST_IMG" | _filter_qemu_io
+# now verify what we should have actually written
+$QEMU_IO -c "read -pP 0xc3 99M 58M" "$TEST_IMG" | _filter_qemu_io
+
# success, all done
echo "*** done"
rm -f $seq.full
diff --git a/tests/qemu-iotests/064.out b/tests/qemu-iotests/064.out
index b9e8e4a..5346a4e 100644
--- a/tests/qemu-iotests/064.out
+++ b/tests/qemu-iotests/064.out
@@ -11,4 +11,18 @@ read 34603008/34603008 bytes at offset 34603008
=== Verify pattern 0x00, 66M - 1024M ===
read 1004535808/1004535808 bytes at offset 69206016
958 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+=== Verify pattern write, 0xc3 99M-157M ===
+wrote 60817408/60817408 bytes at offset 103809024
+58 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 34603008/34603008 bytes at offset 0
+33 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 34603008/34603008 bytes at offset 34603008
+33 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 34603008/34603008 bytes at offset 69206016
+33 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 909115392/909115392 bytes at offset 164626432
+867 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 60817408/60817408 bytes at offset 103809024
+58 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
*** done
diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common
index 2932e14..8cde7f1 100644
--- a/tests/qemu-iotests/common
+++ b/tests/qemu-iotests/common
@@ -200,7 +200,6 @@ testlist options
-vhdx)
IMGFMT=vhdx
xpand=false
- IMGFMT_GENERIC=false
;;
-rbd)
--
1.8.3.1
next prev parent reply other threads:[~2013-10-30 14:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 14:44 [Qemu-devel] [PATCH v8 00/19] VHDX log replay and write support, .bdrv_create() Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 01/19] block: vhdx - minor comments and typo correction Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 02/19] block: vhdx - add header update capability Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 03/19] block: vhdx code movement - VHDXMetadataEntries and BDRVVHDXState to header Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 04/19] block: vhdx - log support struct and defines Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 05/19] block: vhdx - break endian translation functions out Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 06/19] block: vhdx - update log guid in header, and first write tracker Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 07/19] block: vhdx code movement - move vhdx_close() above vhdx_open() Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 08/19] block: vhdx - log parsing, replay, and flush support Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 09/19] block: vhdx - add region overlap detection for image files Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 10/19] block: vhdx - add log write support Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 11/19] block: vhdx " Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 12/19] block: vhdx - remove BAT file offset bit shifting Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 13/19] block: vhdx - move more endian translations to vhdx-endian.c Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 14/19] block: vhdx - break out code operations to functions Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 15/19] block: vhdx - fix comment typos in header, fix incorrect struct fields Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 16/19] block: vhdx - add .bdrv_create() support Jeff Cody
2013-10-31 13:09 ` Stefan Hajnoczi
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 17/19] block: vhdx - update _make_test_img() to filter out vhdx options Jeff Cody
2013-10-30 14:44 ` Jeff Cody [this message]
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 19/19] block: vhdx qemu-iotest - log replay of data sector Jeff Cody
2013-10-31 13:10 ` [Qemu-devel] [PATCH v8 00/19] VHDX log replay and write support, .bdrv_create() Stefan Hajnoczi
2013-11-01 15:32 ` Jeff Cody
2013-11-04 11:41 ` Kevin Wolf
2013-11-01 5:04 ` [Qemu-devel] VHD suport in QEMU? Philipp Hahn
2013-11-01 9:20 ` Stefan Hajnoczi
2013-11-01 11:53 ` Jeff Cody
2013-11-06 14:34 ` [Qemu-devel] [PATCH v8 00/19] VHDX log replay and write support, .bdrv_create() Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53624e00e5d3c5878b935af649e02ee217e8db57.1383143104.git.jcody@redhat.com \
--to=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).