# HG changeset patch
# User Andrei Lifchits <andrei.lifchits@xxxxxxxxxx>
# Date 1282750331 -3600
# Node ID 7b13bd78e5327009ad53951d51ce3f5270525e85
# Parent b245586b01c8242d83376a26d1043d2ae6e376c0
Don't pause the VDI for online snapshots: the SM is now
responsible for pausing
Signed-off-by: Julian Chesterfield
<julian.chesterfield@xxxxxxxxxx>
diff -r b245586b01c8 -r 7b13bd78e532 ocaml/xapi/xapi_vdi.ml
--- a/ocaml/xapi/xapi_vdi.ml Wed Aug 18 11:18:58 2010
+0100
+++ b/ocaml/xapi/xapi_vdi.ml Wed Aug 25 16:32:11 2010
+0100
@@ -315,12 +315,7 @@
(* While we don't have blkback support for pause/unpause
we only do this
for .vhd-based backends. *)
- let vdi_info =
- if Xen_helpers.kind_of_vdi ~__context ~self:vdi =
Device_common.Tap then
- Sm.with_all_vbds_paused
~__context ~vdis:[vdi] call_snapshot
- else
- call_snapshot () in
-
+ let vdi_info = call_snapshot () in
let uuid = require_uuid vdi_info in
let newvdi = Db.VDI.get_by_uuid ~__context ~uuid in