From: Andrei Lifchits Date: Fri, 24 Sep 2010 16:33:28 +0000 (+0100) Subject: Don't pause the VDI for online snapshots: The SM is now responsible for pausing X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b3aaac2a116721e154e5998ed005055f6dda3e3d;p=xcp%2Fxen-api.git Don't pause the VDI for online snapshots: The SM is now responsible for pausing Signed-off-by: Andrei Lifchits Signed-off-by: Julian Chesterfield --- diff --git a/ocaml/xapi/xapi_vdi.ml b/ocaml/xapi/xapi_vdi.ml index 5520cf95..61305a38 100644 --- a/ocaml/xapi/xapi_vdi.ml +++ b/ocaml/xapi/xapi_vdi.ml @@ -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