From: Jeff Cody <jcody@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH 2/2] block: add test for vhdx image created by Disk2VHD
Date: Wed, 14 May 2014 08:15:53 -0400 [thread overview]
Message-ID: <20140514121553.GD8452@localhost.localdomain> (raw)
In-Reply-To: <20140514015807.GC1856@T430.nay.redhat.com>
On Wed, May 14, 2014 at 09:58:07AM +0800, Fam Zheng wrote:
> On Tue, 05/13 10:00, Jeff Cody wrote:
> > This adds a test for VHDX images created by Microsoft's tool, Disk2VHD.
>
> Out of curiosity, is this an official tool from Microsoft?
>
Yes, it is a p2v tool from MS for Virtual PC / Hyper-V hosts:
http://technet.microsoft.com/en-us/sysinternals/ee656415.aspx
> >
> > VHDX images created by this tool have 2 identical header sections, with
> > identical sequence numbers. This makes sure we detect VHDX images with
> > identical headers, and do not flag them as corrupt.
> >
> > Signed-off-by: Jeff Cody <jcody@redhat.com>
> > ---
> > tests/qemu-iotests/070 | 7 +++++++
> > tests/qemu-iotests/070.out | 7 +++++++
> > tests/qemu-iotests/sample_images/test-disk2vhd.vhdx.bz2 | Bin 0 -> 1424 bytes
> > 3 files changed, 14 insertions(+)
> > create mode 100644 tests/qemu-iotests/sample_images/test-disk2vhd.vhdx.bz2
> >
> > diff --git a/tests/qemu-iotests/070 b/tests/qemu-iotests/070
> > index ce71fa4..ea0dae7 100755
> > --- a/tests/qemu-iotests/070
> > +++ b/tests/qemu-iotests/070
> > @@ -72,6 +72,13 @@ echo "=== Verify open image read-only succeeds after log replay ==="
> > $QEMU_IO -r -c "read -pP 0xa5 0 18M" "$TEST_IMG" 2>&1 | _filter_testdir \
> > | _filter_qemu_io
> >
> > +_cleanup_test_img
> > +_use_sample_img test-disk2vhd.vhdx.bz2
> > +
> > +echo
> > +echo "=== Verify image created by Disk2VHD can be opened ==="
> > +$QEMU_IMG info "$TEST_IMG" 2>&1 | _filter_testdir | _filter_qemu
> > +
>
> _filter_qemu shouldn't make a difference for $QEMU_IMG. Anyway,
>
> Reviewed-by: Fam Zheng <famz@redhat.com>
>
> > # success, all done
> > echo "*** done"
> > rm -f $seq.full
> > diff --git a/tests/qemu-iotests/070.out b/tests/qemu-iotests/070.out
> > index 922d62c..15f1fc1 100644
> > --- a/tests/qemu-iotests/070.out
> > +++ b/tests/qemu-iotests/070.out
> > @@ -18,4 +18,11 @@ No errors were found on the image.
> > === Verify open image read-only succeeds after log replay ===
> > read 18874368/18874368 bytes at offset 0
> > 18 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
> > +
> > +=== Verify image created by Disk2VHD can be opened ===
> > +image: TEST_DIR/test-disk2vhd.vhdx
> > +file format: vhdx
> > +virtual size: 256M (268435456 bytes)
> > +disk size: 260M
> > +cluster_size: 2097152
> > *** done
> > diff --git a/tests/qemu-iotests/sample_images/test-disk2vhd.vhdx.bz2 b/tests/qemu-iotests/sample_images/test-disk2vhd.vhdx.bz2
> > new file mode 100644
> > index 0000000000000000000000000000000000000000..2891c9a6d62908e0195d3791817284016249aaee
> > GIT binary patch
> > literal 1424
> > zcmZ>Y%CIzaj8qGbG}k{O$Xb_J|NsC0KmUCH-JDzhyZ-zC_y7OrRo{&NR|gc{RqOEm
> > z=imPqn0Gw*bmiUDGLEd7O!Jz9a-FYyG%@kz4`91;!B*gMCgZ|o{hrI3-5eMf7&2U(
> > ze2MLfRMjk#3m2F92b;9b3)~wx*_X}#(!AiWP7J&Z7Z*rLWn7%V=F8TQk#Sieg@GYO
> > z%H#s$1cuB7Co(4-Ibm{f0b4Ia3Io%!MYdbrr~3cDvda022}1^3FSCOb0|sEu@-&&Z
> > zd{yQz7v?J$7%p6>a$t6L0IPy1Hi78)%CahBQl<Z;+5VngDYs_v^vp6jaD~m;eM-i~
> > z&Sh$|j1q($7cl#p@Y?z`Wbn)~;$8WKbK(Lv_Z21=7;XxsEqh$#HSI@WE6^;a!cbHI
> > zu?%7hkTh5`=j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!MiKQrW>eatZPZ^(zWe`GGwaHqI+yFZw>+A3{QKrRzAG9SB77d|ev|%_V)0-`
> > z-JZ?tMvvIkH2+6tf9dm9+PF?_erw&^`i@ni63vV(0;eV%=E*Bq#jok#6Tz6rbtWUl
> > zLX<`8`FCKbFRwON)jb?9dDZx@toqN7-~A3R)HZBdvAAbTO@<1S0Fy|{so18Xs4bHB
> > zS53EGJoP`Mc;n-Ibe}Q4&w=3p0|SQwgF%C@o6`c-m0S(e=_6mW?bJO+Z@mKy2Ux)N
> > dpW$4UIbn)dbcj%=_t85O{X|r_v(Ec8000NwOCSIM
> >
> > literal 0
> > HcmV?d00001
> >
> > --
> > 1.8.3.1
> >
> >
next prev parent reply other threads:[~2014-05-14 12:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-13 14:00 [Qemu-devel] [PATCH 0/2] Accommodate VHDX images created by Disk2VHD Jeff Cody
2014-05-13 14:00 ` [Qemu-devel] [PATCH 1/2] block: vhdx - account for identical header sections Jeff Cody
2014-05-13 14:00 ` [Qemu-devel] [PATCH 2/2] block: add test for vhdx image created by Disk2VHD Jeff Cody
2014-05-14 1:58 ` Fam Zheng
2014-05-14 12:15 ` Jeff Cody [this message]
2014-05-14 8:07 ` [Qemu-devel] [PATCH 0/2] Accommodate VHDX images " Kevin Wolf
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=20140514121553.GD8452@localhost.localdomain \
--to=jcody@redhat.com \
--cc=famz@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.