aboutsummaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2017-11-20 15:02:48 +0100
committerKevin Wolf <kwolf@redhat.com>2017-11-21 14:48:22 +0100
commit1f4ad7d3b8f7162ec0471506d86f57a5d77b8f76 (patch)
treecfe4e11087042d0c2afc34e81470933f1d5647d8 /qemu-img.c
parentdacaa16238cc5915a609ddaab4b7f81c4bceb9ae (diff)
block: Don't request I/O permission with BDRV_O_NO_IO
'qemu-img info' makes sense even when BLK_PERM_CONSISTENT_READ cannot be granted because of a block job in a running qemu process. It already sets BDRV_O_NO_IO to indicate that it doesn't access the guest visible data at all. Check the BDRV_O_NO_IO flags in blk_new_open(), so that I/O related permissions are not unnecessarily requested and 'qemu-img info' can work even if BLK_PERM_CONSISTENT_READ cannot be granted. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions