Received: from eggs.gnu.org ([2001:4830:134:3::10]:36751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayiJj-0001DY-Vc for qemu-devel@nongnu.org; Fri, 06 May 2016 12:09:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayiJY-0001ag-F6 for qemu-devel@nongnu.org; Fri, 06 May 2016 12:09:22 -0400 References: <1462419759-14694-1-git-send-email-eblake@redhat.com> <1462419759-14694-6-git-send-email-eblake@redhat.com> From: Max Reitz Message-ID: <6507af47-341f-a6d4-b03a-2ca89012551d@redhat.com> Date: Fri, 6 May 2016 18:08:39 +0200 MIME-Version: 1.0 In-Reply-To: <1462419759-14694-6-git-send-email-eblake@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eRio9IxGbP7mNvSqKpQlujre9FBorrS34" Subject: Re: [Qemu-devel] [PATCH v4 5/6] qemu-io: Add 'open -u' to set BDRV_O_UNMAP after the fact 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) --eRio9IxGbP7mNvSqKpQlujre9FBorrS34 Content-Type: multipart/mixed; boundary="EWqGsdLqJMUsoVvf9F2UX22tKC5iLbCes" From: Max Reitz To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com Message-ID: <6507af47-341f-a6d4-b03a-2ca89012551d@redhat.com> Subject: Re: [PATCH v4 5/6] qemu-io: Add 'open -u' to set BDRV_O_UNMAP after the fact References: <1462419759-14694-1-git-send-email-eblake@redhat.com> <1462419759-14694-6-git-send-email-eblake@redhat.com> In-Reply-To: <1462419759-14694-6-git-send-email-eblake@redhat.com> --EWqGsdLqJMUsoVvf9F2UX22tKC5iLbCes Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 05.05.2016 05:42, Eric Blake wrote: > When opening a file from the command line, qemu-io defaults > to BDRV_O_UNMAP but allows -d to give full control to disable > unmaps. But when opening via the 'open' command, qemu-io did > not set BDRV_O_UNMAP, and had no way to allow it. >=20 > Make it at least possible to symmetrically test things: > 'qemu-io -d ignore' at the CLI now matches 'qemu-io> open' > in batch mode, and 'qemu-io' or 'qemu-io -d unmap' at > the CLI matches 'qemu-io> open -u'. >=20 > Signed-off-by: Eric Blake > --- > qemu-io.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) Not sure why you didn't just reuse the -d option for qemu-io itself, but:= Reviewed-by: Max Reitz --EWqGsdLqJMUsoVvf9F2UX22tKC5iLbCes-- --eRio9IxGbP7mNvSqKpQlujre9FBorrS34 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 iQEcBAEBCAAGBQJXLMGHAAoJEDuxQgLoOKytobsH/1aVy8ROXg64sEk1U3IPU2Yw szp1ALgPA4yXhMechfFh3OhGtMHT85d19z6Z4i+vTZdVAK7Go3HdsfllUEJaKkoY cq2N9mOWPOHao0hc8tZDxotwI011pQVVGGteIt8wna1ZDiB+qOMcNT3N8CZKokBj s83fe+XiqHiuekI5wO/bs97lCMBh7x8zriQLvFgbQRJ1xxp+F6qDl1ckc6rRX7xX womWwUCD2n4vAcSBOnPZoZXWjSgOz4Khf1EqvPkNmEMYNCcNE2CrZ1ljo/3Ot/cU bM7CUyTgUrJbiz6eFDiYUAKMbSKoYLag1OwcCRQc0sapok1CkbKf2D7DXULDP08= =uA7V -----END PGP SIGNATURE----- --eRio9IxGbP7mNvSqKpQlujre9FBorrS34--