Received: from eggs.gnu.org ([2001:4830:134:3::10]:58283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxXGR-00043X-V1 for qemu-devel@nongnu.org; Wed, 05 Sep 2018 08:50:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxXGR-0004Os-5u for qemu-devel@nongnu.org; Wed, 05 Sep 2018 08:50:31 -0400 References: From: Max Reitz Message-ID: Date: Wed, 5 Sep 2018 14:50:22 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="575Z28Pu0SGeS6iLpPmvue7Nr9wLbtjsO" Subject: Re: [Qemu-devel] [PATCH v2 08/10] block: Allow changing 'discard' 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) --575Z28Pu0SGeS6iLpPmvue7Nr9wLbtjsO From: Max Reitz To: Alberto Garcia , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf Message-ID: Subject: Re: [PATCH v2 08/10] block: Allow changing 'discard' 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: > 'discard' 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 discard=3Don" > Cannot change the option 'discard' >=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 | 10 ++++++++++ > 1 file changed, 10 insertions(+) Reviewed-by: Max Reitz --575Z28Pu0SGeS6iLpPmvue7Nr9wLbtjsO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEkb62CjDbPohX0Rgp9AfbAGHVz0AFAluP0Q4ACgkQ9AfbAGHV z0Bjtwf9EBuvabrs6/oMXSDO/wGnTfDtnlgukEAIiOqVQnkPbmuFONN+wTIeCu+r wowgqngrAQfcFAtJgk6yydCQQjGlAe15InCTdMODcSHIdJUdk1qUSF5vRfNIJfRQ n1+mB3eWsJB58fRnaPefJdR5VKl2UGqXTU1HQeBjUDJqToSkBg7NgV5ZB/LbX9Hd 4R1b/UK3bqarOctHchE+JpiDeAHGW6htpB7eH/VNEscilwUDh8ETpRNbDcE9cPdJ mI0a4rkhffqTTYFQIJSa9VwnPMbGcb87BaXoKizd4HqR5TC683E3wNUtXIqHD7dN OGWEFXZtnZyJe9YUGZ4RQYtoyvaezA== =UITQ -----END PGP SIGNATURE----- --575Z28Pu0SGeS6iLpPmvue7Nr9wLbtjsO--