Displaying 2 results from an estimated 2 matches for "connect_ro".
Did you mean:
connect_rw
2017 Sep 08
2
[PATCH] RFC: v2v: add and use libvirt connection objects
...bvirtxml.ml b/v2v/input_libvirtxml.ml
index 570541d7d..5d13faee6 100644
--- a/v2v/input_libvirtxml.ml
+++ b/v2v/input_libvirtxml.ml
@@ -34,7 +34,8 @@ object
method source () =
let xml = read_whole_file file in
- let source, disks = parse_libvirt_xml xml in
+ let conn = Libvirt_utils.connect_ro () in
+ let source, disks = parse_libvirt_xml conn xml in
(* When reading libvirt XML from a file (-i libvirtxml) we allow
* paths to disk images in the libvirt XML to be relative (to the XML
diff --git a/v2v/libvirt_utils-c.c b/v2v/libvirt_utils-c.c
index 93ee5208e..fec14356b 10064...
2017 Sep 11
0
Re: [PATCH] RFC: v2v: add and use libvirt connection objects
...sword:string -> ?conn:string -> string -> string
> -(** [dumpxml ?password ?conn dom] returns the libvirt XML of domain [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 exa...