search for: connect_rw

Displaying 2 results from an estimated 2 matches for "connect_rw".

Did you mean: connect_ro
2017 Sep 08
2
[PATCH] RFC: v2v: add and use libvirt connection objects
...v/copy_to_local.ml @@ -131,7 +131,8 @@ read the man page virt-v2v-copy-to-local(1). (* Get the remote libvirt XML. *) message (f_"Fetching the remote libvirt XML metadata ..."); - let xml = Libvirt_utils.dumpxml ?password ~conn:input_conn guest_name in + let conn = Libvirt_utils.connect_rw ?password ~conn:input_conn () in + let xml = Libvirt_utils.dumpxml conn guest_name in debug "libvirt XML from remote server:\n%s" xml; diff --git a/v2v/input_libvirt.ml b/v2v/input_libvirt.ml index e8143b6ad..6baac7d5f 100644 --- a/v2v/input_libvirt.ml +++ b/v2v/input_libvirt.ml @...
2017 Sep 11
0
Re: [PATCH] RFC: v2v: add and use libvirt connection objects
...omain [dom]. > - The optional [?conn] parameter is the libvirt connection URI. > +type conn > +(** The type of a compiled regular expression. *) > + > +val connect_ro : ?conn:string -> unit -> conn > +(** Connect in read-only mode to the specified URI. *) > + > +val connect_rw : ?password:string -> ?conn:string -> unit -> conn > +(** Connect in read-only mode to the specified URI. *) ^ read-write mode It's not exactly obvious, but read-write connections only need to be used if you're going to call this function. A read-only connecti...