Skip to content

Commit

Permalink
CA-126097: Block clone of live VDIs
Browse files Browse the repository at this point in the history
Signed-off-by: John Else <john.else@citrix.com>
  • Loading branch information
johnelse committed Mar 20, 2014
1 parent 8c1d5cb commit a8aece1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ocaml/xapi/xapi_vdi.ml
Expand Up @@ -89,10 +89,9 @@ let check_operation_error ~__context ?(sr_records=[]) ?(pbd_records=[]) ?(vbd_re
in

(* If the VBD is currently_attached then some operations can still be performed ie:
VDI.clone (if the VM is suspended we have to have the 'allow_clone_suspended_vm'' flag)
VDI.snapshot; VDI.resize_online; 'blocked' (CP-831) *)
let operation_can_be_performed_live = match op with
| `snapshot | `resize_online | `blocked | `clone -> true
| `snapshot | `resize_online | `blocked -> true
| _ -> false in

let operation_can_be_performed_with_ro_attach =
Expand Down

0 comments on commit a8aece1

Please sign in to comment.