Skip to content
  • Kevin Wolf's avatar
    dacaa162
    block: Don't use BLK_PERM_CONSISTENT_READ for format probing · dacaa162
    Kevin Wolf authored
    
    
    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: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarFam Zheng <famz@redhat.com>
    dacaa162
    block: Don't use BLK_PERM_CONSISTENT_READ for format probing
    Kevin Wolf authored
    
    
    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: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarFam Zheng <famz@redhat.com>
Loading