• K
    block: Don't use BLK_PERM_CONSISTENT_READ for format probing · dacaa162
    Kevin Wolf 提交于
    For format probing, we don't really care whether all of the image
    content is consistent. The only thing we're looking at is the image
    header, and specifically the magic numbers that are expected to never
    change, no matter how inconsistent the guest visible disk content is.
    
    Therefore, don't request BLK_PERM_CONSISTENT_READ. This allows to use
    format probing, e.g. in the context of 'qemu-img info', even while the
    guest visible data in the image is inconsistent during a running block
    job.
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    Reviewed-by: NFam Zheng <famz@redhat.com>
    dacaa162
block.c 151.3 KB