Skip to content

Commit

Permalink
Merge pull request #162 from gaborigloi/feature/CBT_merge
Browse files Browse the repository at this point in the history
Merge first part of CBT feature branch into master
  • Loading branch information
robhoes committed Jun 20, 2017
2 parents cda5c78 + 26eb6c5 commit 2d55a0e
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 @@ -404,6 +404,12 @@ module VDI = struct
(** [remove_from_sm_config dbg sr vdi key] remove [key] from [vdi] sm-config *)
external remove_from_sm_config: dbg:debug_info -> sr:sr -> vdi:vdi -> key:string -> unit = ""

(** [enable_cbt dbg sr vdi] enables changed block tracking for [vdi] *)
external enable_cbt: dbg:debug_info -> sr:sr -> vdi:vdi -> unit = ""

(** [disable_cbt dbg sr vdi] disables changed block tracking for [vdi] *)
external disable_cbt: dbg:debug_info -> sr:sr -> vdi:vdi -> unit = ""

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 @@ -76,6 +76,8 @@ module VDI = struct
let compose ctx ~dbg ~sr ~vdi1 ~vdi2 = u "VDI.compose"
let add_to_sm_config ctx ~dbg ~sr ~vdi ~key ~value = u "VDI.add_to_sm_config"
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"
end

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

0 comments on commit 2d55a0e

Please sign in to comment.