Skip to content

Commit 074a571

Browse files
committed
Add VDI.export_changed_blocks call
Signed-off-by: Gabor Igloi <[email protected]>
1 parent 07266c3 commit 074a571

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

storage/storage_interface.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ module VDI = struct
413413
(** [data_destroy dbg sr vdi] deletes the data of the snapshot [vdi] without deleting its changed block tracking metadata *)
414414
external data_destroy: dbg:debug_info -> sr:sr -> vdi:vdi -> unit = ""
415415

416+
(** [export_changed_blocks dbg sr vdi_from vdi_to] returns the blocks that have changed between [vdi_from] and [vdi_to] as a base64-encoded bitmap string *)
417+
external export_changed_blocks: dbg:debug_info -> sr:sr -> vdi_from:vdi -> vdi_to:vdi -> string = ""
418+
416419
end
417420

418421
(** [get_by_name task name] returns a vdi with [name] (which may be in any SR) *)

storage/storage_skeleton.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ module VDI = struct
7979
let enable_cbt ctx ~dbg ~sr ~vdi = u "VDI.enable_cbt"
8080
let disable_cbt ctx ~dbg ~sr ~vdi = u "VDI.disable_cbt"
8181
let data_destroy ctx ~dbg ~sr ~vdi = u "VDI.data_destroy"
82+
let export_changed_blocks ctx ~dbg ~sr ~vdi_from ~vdi_to = u "VDI.export_changed_blocks"
8283
end
8384

8485
let get_by_name ctx ~dbg ~name = u "get_by_name"

0 commit comments

Comments
 (0)