Skip to content

Commit

Permalink
Merge pull request #168 from xapi-project/feature/CBT
Browse files Browse the repository at this point in the history
Merge feature/CBT branch into master
  • Loading branch information
robhoes authored Aug 8, 2017
2 parents ca0e7c1 + 074a571 commit da3aa11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions storage/storage_interface.ml
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,12 @@ module VDI = struct
(** [disable_cbt dbg sr vdi] disables changed block tracking for [vdi] *)
external disable_cbt: dbg:debug_info -> sr:sr -> vdi:vdi -> unit = ""

(** [data_destroy dbg sr vdi] deletes the data of the snapshot [vdi] without deleting its changed block tracking metadata *)
external data_destroy: dbg:debug_info -> sr:sr -> vdi:vdi -> unit = ""

(** [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 *)
external export_changed_blocks: dbg:debug_info -> sr:sr -> vdi_from:vdi -> vdi_to:vdi -> string = ""

end

(** [get_by_name task name] returns a vdi with [name] (which may be in any SR) *)
Expand Down
2 changes: 2 additions & 0 deletions storage/storage_skeleton.ml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ module VDI = struct
let remove_from_sm_config ctx ~dbg ~sr ~vdi ~key = u "VDI.remove_from_sm_config"
let enable_cbt ctx ~dbg ~sr ~vdi = u "VDI.enable_cbt"
let disable_cbt ctx ~dbg ~sr ~vdi = u "VDI.disable_cbt"
let data_destroy ctx ~dbg ~sr ~vdi = u "VDI.data_destroy"
let export_changed_blocks ctx ~dbg ~sr ~vdi_from ~vdi_to = u "VDI.export_changed_blocks"
end

let get_by_name ctx ~dbg ~name = u "get_by_name"
Expand Down

0 comments on commit da3aa11

Please sign in to comment.