[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] remove VDI pausing from online snapshot now that the SM is responsible for it


  • To: "'xen-api@xxxxxxxxxxxxxxxxxxx'" <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: Andrei Lifchits <Andrei.Lifchits@xxxxxxxxxx>
  • Date: Wed, 25 Aug 2010 08:40:20 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Wed, 25 Aug 2010 10:08:57 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
  • Thread-index: ActEa9MZiVttfv9cQvKD3M87eXJ3gA==
  • Thread-topic: remove VDI pausing from online snapshot now that the SM is responsible for it

# 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

 

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.