[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v2 08/17] block: add flag to indicate that no I/
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [PATCH v2 08/17] block: add flag to indicate that no I/O will be performed |
Date: |
Fri, 5 Feb 2016 12:08:33 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
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
>
> 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
>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
> block.c | 5 +++--
> block/io.c | 2 ++
> include/block/block.h | 1 +
> qemu-img.c | 33 +++++++++++++++++----------------
> 4 files changed, 23 insertions(+), 18 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-block] [PATCH v2 08/17] block: add flag to indicate that no I/O will be performed,
Eric Blake <=