From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRlkH-0001zF-40 for qemu-devel@nongnu.org; Fri, 05 Feb 2016 14:08:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRlkG-0005W0-7i for qemu-devel@nongnu.org; Fri, 05 Feb 2016 14:08:41 -0500 References: <1453311539-1193-1-git-send-email-berrange@redhat.com> <1453311539-1193-9-git-send-email-berrange@redhat.com> From: Eric Blake Message-ID: <56B4F331.9090503@redhat.com> Date: Fri, 5 Feb 2016 12:08:33 -0700 MIME-Version: 1.0 In-Reply-To: <1453311539-1193-9-git-send-email-berrange@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6s1HrPPGGx5dBmH9PJCloFRMa7vEXdS0X" Subject: Re: [Qemu-devel] [PATCH v2 08/17] block: add flag to indicate that no I/O will be performed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6s1HrPPGGx5dBmH9PJCloFRMa7vEXdS0X Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/20/2016 10:38 AM, Daniel P. Berrange wrote: > When opening an image it is useful to know whether the caller > intends to perform I/O on the image or not. In the case of > encrypted images this will allow the block driver to avoid > having to prompt for decryption keys when we merely want to > query header metadata about the image. eg qemu-img info >=20 > This flag is enforced at the top level only, since even if > we don't want todo I/O on the 'qcow2' file payload, the > underlying 'file' driver will still need todo I/O to read > the qcow2 header, for example. s/todo/to do/2 >=20 > Signed-off-by: Daniel P. Berrange > --- > block.c | 5 +++-- > block/io.c | 2 ++ > include/block/block.h | 1 + > qemu-img.c | 33 +++++++++++++++++---------------- > 4 files changed, 23 insertions(+), 18 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --6s1HrPPGGx5dBmH9PJCloFRMa7vEXdS0X 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/ iQEcBAEBCAAGBQJWtPMxAAoJEKeha0olJ0NqJ5oH/0XRrUflHwWnIsJChkOwIqH+ bYJnKekD4T9j/dvnQPxZUob6SUcUr7092MrOrMgbQ26mE89IM8XuIxf8hFJPxv7e yI5obJCj2v2/dlZc9I4lPxONTvajenApAz2oo/SJS+cYrNy7m8y9yu7AJGo79xGh 8mD9iZ1dLEYFcBgEXxYwBadYkDLRfAcVVzfCkOKQWMha5VIDh0vaqrIoUXs/ZJS7 6M1Y1z+U6lwBfcRiO9iItXan8CD/OLS0CF23wmP2saLAnXWMt97QLobzyP1iW7sz kO+0gLxefEVV0OC5vNsoclfK9Ll2V9fiCk3TyOoxWXrW9oLbsqz81x/1p0Jglyk= =SIAV -----END PGP SIGNATURE----- --6s1HrPPGGx5dBmH9PJCloFRMa7vEXdS0X--