This patch is rather obviously wrong if you examine the output
of the random plugin:
$ ./nbdkit -U - random size=1M --run 'qemu-img convert $nbd /tmp/random.img'
$ hexdump -C /tmp/random.img
00000000 00 80 00 80 00 80 00 80 00 80 00 80 00 80 00 80 |................|
*
00100000
So um yes I'll try to fix this and improve the test too.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/