]> xenbits.xensource.com Git - xcp/xen-api.git/commitdiff
Don't pause the VDI for online snapshots: The SM is now responsible for pausing
authorAndrei Lifchits <andrei.lifchits@citrix.com>
Fri, 24 Sep 2010 16:33:28 +0000 (17:33 +0100)
committerAndrei Lifchits <andrei.lifchits@citrix.com>
Fri, 24 Sep 2010 16:33:28 +0000 (17:33 +0100)
Signed-off-by: Andrei Lifchits <andrei.lifchits@citrix.com>
Signed-off-by: Julian Chesterfield <julian.chesterfield@citrix.com>
ocaml/xapi/xapi_vdi.ml

index 5520cf9552e07252a7f961a716ff66efa4b6c39c..61305a382fd302a5925bc3c1080ae84f7966a012 100644 (file)
@@ -320,12 +320,7 @@ let snapshot ~__context ~vdi ~driver_params =
 
   (* 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