]> Git Repo - qemu.git/commit
block: add flag to indicate that no I/O will be performed
authorDaniel P. Berrange <[email protected]>
Mon, 21 Mar 2016 14:11:42 +0000 (14:11 +0000)
committerKevin Wolf <[email protected]>
Wed, 30 Mar 2016 09:59:32 +0000 (11:59 +0200)
commitabb06c5ac1c86e747bbe08bf7b5b69723ad69832
tree227d67569c4069dbb356410cbf77e0544224bda8
parent543021569978c908fccff235bf90fc803e6fed1d
block: add flag to indicate that no I/O will be performed

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.

Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Daniel P. Berrange <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block.c
block/io.c
include/block/block.h
qemu-img.c
This page took 0.027633 seconds and 4 git commands to generate.