Skip to content
  • Swapnil Ingle's avatar
    83a6a900
    block/vhdx: Support vhdx image only with 512 bytes logical sector size · 83a6a900
    Swapnil Ingle authored
    
    
    block/vhdx uses qemu block layer where sector size is always 512 bytes.
    This may have issues  with 4K logical sector sized vhdx image.
    
    For e.g qemu-img convert on such images fails with following assert:
    
    $qemu-img convert -f vhdx -O raw 4KTest1.vhdx test.raw
    qemu-img: util/iov.c:388: qiov_slice: Assertion `offset + len <=
    qiov->size' failed.
    Aborted
    
    This patch adds an check to return ENOTSUP for vhdx images which
    have logical sector size other than 512 bytes.
    
    Signed-off-by: default avatarSwapnil Ingle <swapnil.ingle@nutanix.com>
    Message-Id: <1596794594-44531-1-git-send-email-swapnil.ingle@nutanix.com>
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
    83a6a900
    block/vhdx: Support vhdx image only with 512 bytes logical sector size
    Swapnil Ingle authored
    
    
    block/vhdx uses qemu block layer where sector size is always 512 bytes.
    This may have issues  with 4K logical sector sized vhdx image.
    
    For e.g qemu-img convert on such images fails with following assert:
    
    $qemu-img convert -f vhdx -O raw 4KTest1.vhdx test.raw
    qemu-img: util/iov.c:388: qiov_slice: Assertion `offset + len <=
    qiov->size' failed.
    Aborted
    
    This patch adds an check to return ENOTSUP for vhdx images which
    have logical sector size other than 512 bytes.
    
    Signed-off-by: default avatarSwapnil Ingle <swapnil.ingle@nutanix.com>
    Message-Id: <1596794594-44531-1-git-send-email-swapnil.ingle@nutanix.com>
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Loading