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

2018-08-01 Thread Eric Blake
On 07/31/2018 01:25 PM, Eric Blake wrote: On 07/31/2018 01:00 PM, Richard W.M. Jones wrote: Hi Eric.  Is this a bug? Note that with qemu as server: $ truncate --size=1023 file $ qemu-nbd -f raw -x '' file the client now sees: 423068@1533060754.229106:nbd_opt_go_info_block_size Block siz

Re: [Qemu-devel] 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