Re: qemu-img convert asserts while converting from vhdx to raw

2020-08-05 Thread Swapnil Ingle
Hi Max, Thanks for the response. I checked internally and looks like it always fails. Also in the code I see comment saying "We only support 512 currently" at block/vhdx.c: vhdx_parse_metadata() As you suggested we can just refuse to open images with 4K logical sector size, I will send an patch

Re: qemu-img convert asserts while converting from vhdx to raw

2020-07-29 Thread Max Reitz
On 28.07.20 18:53, Swapnil Ingle wrote: > Hey Guys, > >   > > We are seeing following assert when trying to convert disk image from > vhdx to raw.  > > This issue is seen only for disk with 4k logical sector size. Honestly, looking at the vhdx code, it just can’t work for 4k logical sectors wit

qemu-img convert asserts while converting from vhdx to raw

2020-07-28 Thread Swapnil Ingle
Hey Guys, We are seeing following assert when trying to convert disk image from vhdx to raw. This issue is seen only for disk with 4k logical sector size. $ 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.