From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxXIj-00070V-VF for qemu-devel@nongnu.org; Wed, 05 Sep 2018 08:52:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxXIj-0001e8-3W for qemu-devel@nongnu.org; Wed, 05 Sep 2018 08:52:53 -0400 References: From: Max Reitz Message-ID: <2a526c45-d61b-f923-a9c5-7dc96e058cc3@redhat.com> Date: Wed, 5 Sep 2018 14:52:41 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i3qSe3hDGmrqoMZb0iaupkvl1eBJBLzQT" Subject: Re: [Qemu-devel] [PATCH v2 09/10] block: Allow changing 'detect-zeroes' on reopen List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --i3qSe3hDGmrqoMZb0iaupkvl1eBJBLzQT From: Max Reitz To: Alberto Garcia , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf Message-ID: <2a526c45-d61b-f923-a9c5-7dc96e058cc3@redhat.com> Subject: Re: [PATCH v2 09/10] block: Allow changing 'detect-zeroes' on reopen References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2018-09-03 16:34, Alberto Garcia wrote: > 'detect-zeroes' is one of the basic BlockdevOptions available for all > drivers, but it's not handled by bdrv_reopen_prepare(), so any attempt > to change it results in an error: >=20 > (qemu) qemu-io virtio0 "reopen -o detect-zeroes=3Don" > Cannot change the option 'detect-zeroes' >=20 > Since there's no reason why we shouldn't allow changing it and the > implementation is simple let's just do it. >=20 > Signed-off-by: Alberto Garcia > Cc: Max Reitz > --- > block.c | 63 +++++++++++++++++++++++++++++++------------= -------- > include/block/block.h | 1 + > 2 files changed, 40 insertions(+), 24 deletions(-) Reviewed-by: Max Reitz --i3qSe3hDGmrqoMZb0iaupkvl1eBJBLzQT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEkb62CjDbPohX0Rgp9AfbAGHVz0AFAluP0ZkACgkQ9AfbAGHV z0CKFwgAv9/nuwNo2j1yxdC8N/QQAmheaPIK65F2IHNxZ7NnjVvEvCGr5fBHNf3/ aykMUPyCUzBQWUK4LdCH0HImTogjBl3Go/2WMuab5Tu5l35qBHK8SyFXQ66wR+qd m48hm55Xsgc+agHSAqQ2wMp2gm2sltN9uo54RDJH4IdIcRzJzM4koiNCwI1HUcUE QOmOU8cTfGllYntT88W2ZIykAOdHPiuYBlQ0/028w1N8MIkltZgu6+cWAAveyH0N OtujE9SMlsQP3OzE226F8sD5j+UEsnCrpH+ioiRw0qUYLgKF2uEkIRsG0fqNzCRz ApACPehBYygKyKm0pl7NhRSLhheBWw== =PYdM -----END PGP SIGNATURE----- --i3qSe3hDGmrqoMZb0iaupkvl1eBJBLzQT--