Received: from eggs.gnu.org ([208.118.235.92]:47109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlUI-0008CB-4h for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:38:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URlUG-0006aK-Iv for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:38:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlUG-0006a4-9W for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:38:32 -0400 Message-ID: <516C1EF4.4010903@redhat.com> Date: Mon, 15 Apr 2013 09:38:28 -0600 From: Eric Blake MIME-Version: 1.0 References: <1366039054-32536-1-git-send-email-stefanha@redhat.com> <1366039054-32536-5-git-send-email-stefanha@redhat.com> In-Reply-To: <1366039054-32536-5-git-send-email-stefanha@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2KNNDIQEJJKEWLSTKSRMQ" Subject: Re: [Qemu-devel] [PATCH 4/4] qemu-iotests: add 053 unaligned compressed image size test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Fam Zheng , qemu-devel@nongnu.org, Ilkka Tengvall This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2KNNDIQEJJKEWLSTKSRMQ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 04/15/2013 09:17 AM, Stefan Hajnoczi wrote: > Test that qemu-img convert -c works when input image length is not a > multiple of the cluster size. >=20 > Previously an error message would be produced: >=20 > qemu-img: error while compressing sector 0: Input/output error >=20 > Now that qcow2 and qcow handle this case the test passes successfully. >=20 > Signed-off-by: Stefan Hajnoczi > --- > +echo > +echo "=3D=3D Creating single sector image =3D=3D" > + > +_make_test_img 512 > +$QEMU_IO -c "write -P0xa 0 512" $TEST_IMG | _filter_qemu_io > +mv $TEST_IMG $TEST_IMG.orig > + > +echo > +echo "=3D=3D Converting the image, compressed =3D=3D" > + > +$QEMU_IMG convert -c -O $IMGFMT $TEST_IMG.orig $TEST_IMG > +_check_test_img > + > +# success, all done Is it worth also testing that qemu-img info on the converted image still reports that the guest sees a size of 512, to prove that the virtual size was not expanded as a result of compression tail padding? With that question answered, you have: Series: Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2KNNDIQEJJKEWLSTKSRMQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJRbB70AAoJEKeha0olJ0NqYBEIAIB5LbF4IDQ5lMB96jRO10cV z1A5N+bkzD2K6YGGyXoPuLX93b8JDcbHxd7mBUSh0g1DYorMKSr+B1E2tnrm/gij ux87PUKIBbuEViDCyV2Mi8+HOiVDOwUhIzR54T1c0ya4gw9yGV4SHjkgONG0R/R1 8dPANby4Wl9ekCdHTV8lApiWCnQDzfXbsb6Mbx8s1ncwrhDv2yDO6Y5DJZdfb6GT InAEf8hjWzyGfXX6o1ePyAwkjncMF+zUgpoKdvuoOZp5eYk+HEXo5jZ1Tb8NKP7C +yh4W6bg90V8aD0l+U7TraZkIgNwv92MNi0bON88B3LVt6dmTs099Drz+LWsoMc= =oZn1 -----END PGP SIGNATURE----- ------enig2KNNDIQEJJKEWLSTKSRMQ--