Skip to content

Commit

Permalink
partially revert something
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Ruiz Safont <[email protected]>
  • Loading branch information
psafont committed Nov 22, 2024
1 parent 7c62ede commit 2e1274d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion ocaml/xapi/xapi_sr_operations.ml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,32 @@ open Client

open Record_util

let all_ops = API.storage_operations__all
(* This is a subset of the API enumeration. Not all values can be included
because older versions which don't have them are unable to migrate VMs to the
the versions that have new fields in allowed operations *)
let all_ops : API.storage_operations_set =
[
`scan
; `destroy
; `forget
; `plug
; `unplug
; `vdi_create
; `vdi_destroy
; `vdi_resize
; `vdi_clone
; `vdi_snapshot
; `vdi_mirror
; `vdi_enable_cbt
; `vdi_disable_cbt
; `vdi_data_destroy
; `vdi_list_changed_blocks
; `vdi_set_on_boot
; `vdi_introduce
; `update
; `pbd_create
; `pbd_destroy
]

(* This list comes from https://github.com/xenserver/xen-api/blob/tampa-bugfix/ocaml/xapi/xapi_sr_operations.ml#L36-L38 *)
let all_rpu_ops : API.storage_operations_set =
Expand Down

0 comments on commit 2e1274d

Please sign in to comment.