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 <[email protected]> > --- > 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 <[email protected]> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
