Skip to contentSkip to conversation

Indicate a resume operation

PATCH New Stefan Berger 1 participant 1 message Dec 19, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Indicate a resume operation

Indicate that the domain is created as part of a resume operation rather than a 'create'.

xen-unstable.hg/tools/python/xen/xend/XendDomain.py +2 -0
Index: root/xen-unstable.hg/tools/python/xen/xend/XendDomain.py
===================================================================
@@ -913,6 +913,8 @@ class XendDomain:
                 if dominfo._stateGet() != XEN_API_VM_POWER_STATE_SUSPENDED:
                     raise XendError("Cannot resume domain that is not suspended.")
 
+                dominfo.setResume(True)
+
                 dom_uuid = dominfo.get_uuid()
                 chkpath = self._managed_check_point_path(dom_uuid)
                 if not os.path.exists(chkpath):
xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py +3 -0
Index: root/xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py
===================================================================
@@ -1178,6 +1178,9 @@ class XendDomainInfo:
     def getResume(self):
         return str(self._resume)
 
+    def setResume(self, isresume):
+        self._resume = isresume
+
     def getCap(self):
         return self.info['vcpus_params']['cap']
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel