Received: from eggs.gnu.org ([2001:4830:134:3::10]:49809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmn34-0001ww-Ad for qemu-devel@nongnu.org; Wed, 21 Sep 2016 15:19:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmn32-0006MY-B4 for qemu-devel@nongnu.org; Wed, 21 Sep 2016 15:19:13 -0400 References: <1474405737-2092-1-git-send-email-kwolf@redhat.com> <1474405737-2092-6-git-send-email-kwolf@redhat.com> From: Eric Blake Message-ID: Date: Wed, 21 Sep 2016 14:19:02 -0500 MIME-Version: 1.0 In-Reply-To: <1474405737-2092-6-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UxxJqoVMMN6092Tfoe8tsUeSMjIr0XlWA" Subject: Re: [Qemu-devel] [PATCH 5/7] block: Use 'detect-zeroes' option for 'blockdev-change-medium' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: mreitz@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UxxJqoVMMN6092Tfoe8tsUeSMjIr0XlWA From: Eric Blake To: Kevin Wolf , qemu-block@nongnu.org Cc: mreitz@redhat.com, qemu-devel@nongnu.org Message-ID: Subject: Re: [PATCH 5/7] block: Use 'detect-zeroes' option for 'blockdev-change-medium' References: <1474405737-2092-1-git-send-email-kwolf@redhat.com> <1474405737-2092-6-git-send-email-kwolf@redhat.com> In-Reply-To: <1474405737-2092-6-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/20/2016 04:08 PM, Kevin Wolf wrote: > Instead of modifying the new BDS after it has been opened, use the newl= y > supported 'detect-zeroes' option in bdrv_open_common() so that all > requirements are checked (detect-zeroes=3Dunmap requires discard=3Dunma= p). >=20 > Signed-off-by: Kevin Wolf > --- > block/block-backend.c | 9 ++++----- > blockdev.c | 9 ++++++--- > include/sysemu/block-backend.h | 2 +- > 3 files changed, 11 insertions(+), 9 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --UxxJqoVMMN6092Tfoe8tsUeSMjIr0XlWA 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/ iQEcBAEBCAAGBQJX4t0nAAoJEKeha0olJ0NqSPQH/RXKlH3JxfFSVNOojkJeld9c Pk5yXhzwiiZGHXkwEVZRIinOkc46qb7CeS87lKXmo50v5EK0o0s366VW9ZQJT0F5 Ksevmg5TTKzdV9Y4Hnyy6YTk2InBszMuT83qZF0P6iXgp5ti/+2IxZHZxoNVzIvB qvUWAPqUgEeKWjO1I9OTRERdWXwqYMI3Zo/j+c6RayXwKeQcUBiBoi6S3KseWr/T AeMueLxLgZLU4WZHqj1vwCcNUiLNnKRmhja9Xe98Zen0+nTex2z3VbHQbF5QxVT0 IUrzSxW3oHR1VJSyigT1KEil/5GuAeJbnABwSEp4lwGwvU6V55XqBPmgzIXesOw= =AqU1 -----END PGP SIGNATURE----- --UxxJqoVMMN6092Tfoe8tsUeSMjIr0XlWA--