Received: from eggs.gnu.org ([2001:4830:134:3::10]:40760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Xpx-0001KU-1b for qemu-devel@nongnu.org; Thu, 17 Nov 2016 20:19:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7Xpw-00089o-5q for qemu-devel@nongnu.org; Thu, 17 Nov 2016 20:19:29 -0500 References: <1479413642-22463-1-git-send-email-eblake@redhat.com> <1479413642-22463-10-git-send-email-eblake@redhat.com> <13bc93b1-53df-26ba-32b0-fc825a4a6fb3@redhat.com> From: Eric Blake Message-ID: <4d2b2edc-4e7b-989b-3713-ab0733903971@redhat.com> Date: Thu, 17 Nov 2016 19:19:18 -0600 MIME-Version: 1.0 In-Reply-To: <13bc93b1-53df-26ba-32b0-fc825a4a6fb3@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nmTGXUp9sxvL6P2CuLhfuVIDrBI45ue5G" Subject: Re: [Qemu-devel] [PATCH v2 9/9] tests: Add coverage for recent block geometry fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, pbonzini@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nmTGXUp9sxvL6P2CuLhfuVIDrBI45ue5G From: Eric Blake To: Max Reitz , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, pbonzini@redhat.com Message-ID: <4d2b2edc-4e7b-989b-3713-ab0733903971@redhat.com> Subject: Re: [PATCH v2 9/9] tests: Add coverage for recent block geometry fixes References: <1479413642-22463-1-git-send-email-eblake@redhat.com> <1479413642-22463-10-git-send-email-eblake@redhat.com> <13bc93b1-53df-26ba-32b0-fc825a4a6fb3@redhat.com> In-Reply-To: <13bc93b1-53df-26ba-32b0-fc825a4a6fb3@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/17/2016 05:19 PM, Max Reitz wrote: > On 17.11.2016 21:14, Eric Blake wrote: >> Use blkdebug's new geometry constraints to emulate setups that >> have caused recent regression fixes: write zeroes asserting >> when running through a loopback block device with max-transfer >> smaller than cluster size, and discard rounding away requests >> that were not aligned to power-of-two boundaries. Also, add >> coverage that the block layer is honoring max transfer limits. >> >> +function verify_io() >> +{ >> + if ($QEMU_IMG info -f "$IMGFMT" "$TEST_IMG" | >> + grep "compat: 0.10" > /dev/null); then >> + # For v2 images, discarded clusters are read from the backing= file >> + discarded=3D11 >> + else >> + # Discarded clusters are zeroed for v3 or later >> + discarded=3D0 >> + fi >=20 > This is fine since you've already done the work to support compat=3D0.1= 0, > but I think we've had v3 long enough that you could have just put > compat=3D0.10 into _unsupported_imgopts. Copy-and-paste from 46, so it wasn't really that hard. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --nmTGXUp9sxvL6P2CuLhfuVIDrBI45ue5G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYLlcWAAoJEKeha0olJ0Nqpc4H+wXXah11vVgFMsUQGpiDDI6k C1Sl41jp4wXQn6yR86wfFmhMSJA5dXf4zNUdtx9MwOXGAEgCT9uIZ3mWYfpmp0zZ pNev5UJR29VhG4bSk27FVN/rO0zD5e9kqcdxbGVeWUbaKexRO/rdNxQPCBfdNhol PxHF86jFBWNLzNSrRI8zbaJgxkYV8dkRQq7ZTYp0GwbeWVLzakiKic7iWZfLUTyW MVmUDGOkO8fwRi/dm4iVVq/MGhmRFTIOzd2jnWj0jGMpjjTvYaRL4x74eZ9Dk80P xNaP5bl4kMR+gF8IRZBaVEt/CQa98QtwUHLLuJjOICwR1a8WEGiW+6iDO41SXnE= =a/OM -----END PGP SIGNATURE----- --nmTGXUp9sxvL6P2CuLhfuVIDrBI45ue5G--