]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Formats don't need CONSISTENT_READ with NO_IO
authorKevin Wolf <kwolf@redhat.com>
Thu, 30 Nov 2017 16:38:43 +0000 (17:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Dec 2017 14:03:41 +0000 (15:03 +0100)
commit5fbfabd313b77e1cc7038ae8c4481c4b9f8b650a
treeb965fe3930393846d4cb96476441b90455ce36c4
parent281f327487c9c9b1599f93c589a408bbf4a651b8
block: Formats don't need CONSISTENT_READ with NO_IO

Commit 1f4ad7d fixed 'qemu-img info' for raw images that are currently
in use as a mirror target. It is not enough for image formats, though,
as these still unconditionally request BLK_PERM_CONSISTENT_READ.

As this permission is geared towards whether the guest-visible data is
consistent, and has no impact on whether the metadata is sane, and
'qemu-img info' does not read guest-visible data (except for the raw
format), it makes sense to not require BLK_PERM_CONSISTENT_READ if there
is not going to be any guest I/O performed, regardless of image format.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c