Skip to content

Commit 81264fc

Browse files
committed
Add support for vdi_export_changed_blocks SMAPIv1 call
Signed-off-by: Gabor Igloi <[email protected]>
1 parent a99e7bb commit 81264fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ocaml/xapi/sm.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ let vdi_data_destroy dconf driver sr vdi =
220220
let call = Sm_exec.make_call ~sr_ref:sr ~vdi_ref:vdi dconf "vdi_data_destroy" [] in
221221
Sm_exec.parse_unit (Sm_exec.exec_xmlrpc (driver_filename driver) call)
222222

223+
let vdi_export_changed_blocks dconf driver sr ~vdi_from ~vdi_to =
224+
debug "vdi_export_changed_blocks" driver (sprintf "sr=%s vdi_from=%s vdi_to=%s" (Ref.string_of sr) (Ref.string_of vdi_from) (Ref.string_of vdi_to));
225+
srmaster_only dconf;
226+
let call = Sm_exec.make_call ~sr_ref:sr ~vdi_ref:vdi_from dconf "vdi_export_changed_blocks" [ Ref.string_of vdi_to ] in
227+
Sm_exec.parse_string (Sm_exec.exec_xmlrpc (driver_filename driver) call)
228+
223229
let session_has_internal_sr_access ~__context ~sr =
224230
let session_id = Context.get_session_id __context in
225231
(* XXX: need to move this somewhere else eventually *)

0 commit comments

Comments
 (0)