Skip to content
  • Alberto Garcia's avatar
    74c44a59
    Fix error message about compressed clusters with OFLAG_COPIED · 74c44a59
    Alberto Garcia authored
    
    
    Compressed clusters are not supposed to have the COPIED bit set.
    "qemu-img check" detects that and prints an error message reporting
    the number of the affected host cluster. This doesn't make much sense
    because compressed clusters are not aligned to host clusters, so it
    would be better to report the offset instead. Plus, the calculation is
    wrong and it uses the raw L2 entry as if it was simply an offset.
    
    This patch fixes the error message and reports the offset of the
    compressed cluster.
    
    Signed-off-by: default avatarAlberto Garcia <berto@igalia.com>
    Message-id: 0f687957feb72e80c740403191a47e607c2463fe.1523376013.git.berto@igalia.com
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
    74c44a59
    Fix error message about compressed clusters with OFLAG_COPIED
    Alberto Garcia authored
    
    
    Compressed clusters are not supposed to have the COPIED bit set.
    "qemu-img check" detects that and prints an error message reporting
    the number of the affected host cluster. This doesn't make much sense
    because compressed clusters are not aligned to host clusters, so it
    would be better to report the offset instead. Plus, the calculation is
    wrong and it uses the raw L2 entry as if it was simply an offset.
    
    This patch fixes the error message and reports the offset of the
    compressed cluster.
    
    Signed-off-by: default avatarAlberto Garcia <berto@igalia.com>
    Message-id: 0f687957feb72e80c740403191a47e607c2463fe.1523376013.git.berto@igalia.com
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Loading