[Libguestfs] [PATCH] v2v: -o null: Use the qemu null device driver.

Richard W.M. Jones rjones at redhat.com
Thu Dec 7 16:52:10 UTC 2017


On Thu, Dec 07, 2017 at 04:21:14PM +0000, Richard W.M. Jones wrote:
> Instead of writing to a temporary file and deleting it, use the null
> block driver in qemu to throw it away.

This commit isn't quite right (although working) because certain
places in the code expect target_file to be a real file.  eg
We are calling 'du' on the target file resulting in this non-fatal
message:

  du: cannot access 'json:{ "file.driver": "null-co", "file.size": "1E" }': No such file or directory

Need to think about this a bit.

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/




More information about the Libguestfs mailing list