Skip to content

Commit 2d55a0e

Browse files
authored
Merge pull request #162 from gaborigloi/feature/CBT_merge
Merge first part of CBT feature branch into master
2 parents cda5c78 + 26eb6c5 commit 2d55a0e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

storage/storage_interface.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,12 @@ module VDI = struct
404404
(** [remove_from_sm_config dbg sr vdi key] remove [key] from [vdi] sm-config *)
405405
external remove_from_sm_config: dbg:debug_info -> sr:sr -> vdi:vdi -> key:string -> unit = ""
406406

407+
(** [enable_cbt dbg sr vdi] enables changed block tracking for [vdi] *)
408+
external enable_cbt: dbg:debug_info -> sr:sr -> vdi:vdi -> unit = ""
409+
410+
(** [disable_cbt dbg sr vdi] disables changed block tracking for [vdi] *)
411+
external disable_cbt: dbg:debug_info -> sr:sr -> vdi:vdi -> unit = ""
412+
407413
end
408414

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

storage/storage_skeleton.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ module VDI = struct
7676
let compose ctx ~dbg ~sr ~vdi1 ~vdi2 = u "VDI.compose"
7777
let add_to_sm_config ctx ~dbg ~sr ~vdi ~key ~value = u "VDI.add_to_sm_config"
7878
let remove_from_sm_config ctx ~dbg ~sr ~vdi ~key = u "VDI.remove_from_sm_config"
79+
let enable_cbt ctx ~dbg ~sr ~vdi = u "VDI.enable_cbt"
80+
let disable_cbt ctx ~dbg ~sr ~vdi = u "VDI.disable_cbt"
7981
end
8082

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

0 commit comments

Comments
 (0)