Received: from eggs.gnu.org ([2001:4830:134:3::10]:37264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayiM4-0004QA-Cf for qemu-devel@nongnu.org; Fri, 06 May 2016 12:11:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayiLs-0002EZ-RC for qemu-devel@nongnu.org; Fri, 06 May 2016 12:11:46 -0400 References: <1462419759-14694-1-git-send-email-eblake@redhat.com> <1462419759-14694-7-git-send-email-eblake@redhat.com> From: Max Reitz Message-ID: <588982a3-349b-8cf2-8eb5-1aadbe4fc838@redhat.com> Date: Fri, 6 May 2016 18:11:03 +0200 MIME-Version: 1.0 In-Reply-To: <1462419759-14694-7-git-send-email-eblake@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r5SRpIOQFshw4uQjgxViwkQwcmGCWV1pB" Subject: Re: [Qemu-devel] [PATCH v4 6/6] qemu-io: Add 'write -z -u' to test MAY_UNMAP flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --r5SRpIOQFshw4uQjgxViwkQwcmGCWV1pB Content-Type: multipart/mixed; boundary="O2ASX2damuSUS3wedmcdQPNKQmucqxebg" From: Max Reitz To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com Message-ID: <588982a3-349b-8cf2-8eb5-1aadbe4fc838@redhat.com> Subject: Re: [PATCH v4 6/6] qemu-io: Add 'write -z -u' to test MAY_UNMAP flag References: <1462419759-14694-1-git-send-email-eblake@redhat.com> <1462419759-14694-7-git-send-email-eblake@redhat.com> In-Reply-To: <1462419759-14694-7-git-send-email-eblake@redhat.com> --O2ASX2damuSUS3wedmcdQPNKQmucqxebg Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 05.05.2016 05:42, Eric Blake wrote: > Make it easier to control whether the BDRV_REQ_MAY_UNMAP flag > can be passed through a write_zeroes command, by adding the '-u' > flag to qemu-io 'write -z' and 'aio_write -z'. To be useful, > the device has to be opened with 'qemu-io -d unmap' (or the > just-added 'open -u' subcommand). >=20 > Signed-off-by: Eric Blake > --- > qemu-io-cmds.c | 24 +++++++++++++++++++++--- > 1 file changed, 21 insertions(+), 3 deletions(-) Reviewed-by: Max Reitz --O2ASX2damuSUS3wedmcdQPNKQmucqxebg-- --r5SRpIOQFshw4uQjgxViwkQwcmGCWV1pB 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 iQEcBAEBCAAGBQJXLMIXAAoJEDuxQgLoOKytleAH/27sHmzbz9EUiOUkKve+OJ+O 5F911R8XCNNDZKZh++XXjImAabhavSHu1ckGUJNkLS4bfgcjXxD/zXP352MeNE8j 1SR2X7BaqxzT2hnpYo1f0fVz3cLC7+LqXFPnIN04lEGAqEu75ytPaGEzf2w4ZKcm +kq7NUm8nnSS3VJD2CQZJ4Qr85uUK+uazbFylKbUbalngzT74tqq+Fbc4EofQuC6 /x4OezFK4CP7wLa71ocESA2QYrxideYv3UWUvF4r7T91PC14qINEf/7XOCupwcC7 XIFRyYXMRGd7dgOm8XUkPjbwupa7VQOW1MJ7/2GYBLOWxhy6Y+LmmPkeyJrftlM= =nU4W -----END PGP SIGNATURE----- --r5SRpIOQFshw4uQjgxViwkQwcmGCWV1pB--