On Wed, Nov 11, 2015 at 02:28:16PM +0100, Pino Toscano wrote:
Sounds nice as approach -- why not adding also input and output to
the
struct?
I did that initially, but I found that confusing. The problem is that
input & output are mutable objects (so they are passed to virtually
every function and they are updated as v2v.ml progresses), whereas all
of the other cmdline.* fields are immutable cmdline parameter values.
I don't think any other tool apart from virt-v2v would have this
problem/inconsistency though.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org