Swapnil Ingle 83a6a90009 block/vhdx: Support vhdx image only with 512 bytes logical sector size
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: Swapnil Ingle <swapnil.ingle@nutanix.com>
Message-Id: <1596794594-44531-1-git-send-email-swapnil.ingle@nutanix.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2020-09-15 11:05:13 +02:00
..
2020-09-07 12:31:31 +02:00
2020-09-07 12:31:31 +02:00
2020-09-07 12:31:31 +02:00
2020-09-10 11:11:12 +02:00
2020-09-01 01:51:51 -04:00
2020-09-10 11:11:13 +02:00
2020-09-15 11:05:12 +02:00
2020-09-07 12:31:31 +02:00
2020-09-07 12:31:31 +02:00
2020-09-07 12:31:31 +02:00