[Libguestfs] RFC: arbitrary parameters for add_drive

Richard W.M. Jones rjones at redhat.com
Thu Dec 3 11:52:14 UTC 2015


On Wed, Dec 02, 2015 at 02:10:52PM +0100, Pino Toscano wrote:
> Hi,
> 
> one of the bugs we have (#1092583) is about the lack of query string
> for http/https URLs: there were patches about that (not merged yet),
> whose solution was to add a new optional argument "querystring".
> 
> Another bug that I'm looking at (#1118305) is about setting initiator
> IQNs for iSCSI drives; a good solution IMHO would be add a new
> initiator-name parameter for this.
> 
> Thinking more, I was realizing that keep adding more optional arguments
> to add_drive would make it a bit cluttered; for this, maybe a more
> flexible solution for this could be adding a single extra optional
> argument as hash-table (or list of "param=value") for all these
> rarely used parameters specific to different protocols. How would that
> look?

So that would be adding OHashtable, or using OStringList in some way?

Anyway, yes, seems reasonable.

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




More information about the Libguestfs mailing list