On Mon 20 Nov 2017 03:11:41 PM CET, Kevin Wolf wrote: > '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 <kw...@redhat.com>
Reviewed-by: Alberto Garcia <be...@igalia.com> Berto