[Qemu-block] qemu NBD client behaviour when device size is not a multiple of 512

2018-07-31 Thread Richard W.M. Jones
Hi Eric. Is this a bug? $ nbdkit -fv random size=1023 (You can choose any size which is not a multiple of 512.) $ qemu-img convert nbd:localhost:10809 /var/tmp/test qemu-img: error while reading sector 0: Invalid argument In the nbdkit debugging output: nbdkit: random.1: error: inva

Re: [Qemu-block] qemu NBD client behaviour when device size is not a multiple of 512

2018-07-31 Thread Eric Blake
On 07/31/2018 01:00 PM, Richard W.M. Jones wrote: Hi Eric. Is this a bug? $ nbdkit -fv random size=1023 (You can choose any size which is not a multiple of 512.) $ qemu-img convert nbd:localhost:10809 /var/tmp/test qemu-img: error while reading sector 0: Invalid argument Or more d