qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] qemu NBD client behaviour when device size is not a multipl


From: Richard W.M. Jones
Subject: [Qemu-block] qemu NBD client behaviour when device size is not a multiple of 512
Date: Tue, 31 Jul 2018 19:00:33 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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: invalid request: offset and count are out of range: 
offset=0 count=1024

qemu requested bytes beyond the end of the size of the device.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]