Skip to content
  • Stefan Hajnoczi's avatar
    qed: Consistency check support · 01979a98
    Stefan Hajnoczi authored
    
    
    This patch adds support for the qemu-img check command.  It also
    introduces a dirty bit in the qed header to mark modified images as
    needing a check.  This bit is cleared when the image file is closed
    cleanly.
    
    If an image file is opened and it has the dirty bit set, a consistency
    check will run and try to fix corrupted table offsets.  These
    corruptions may occur if there is power loss while an allocating write
    is performed.  Once the image is fixed it opens as normal again.
    
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    01979a98