Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-changelog

[Xen-changelog] XendDomainInfo.py:

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] XendDomainInfo.py:
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 31 May 2005 15:20:43 +0000
Delivery-date: Tue, 31 May 2005 16:03:04 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1615, 2005/05/31 16:20:43+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        XendDomainInfo.py:
          g/c vm_restore:  no longer used.
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>



 XendDomainInfo.py |   22 ----------------------
 1 files changed, 22 deletions(-)


diff -Nru a/tools/python/xen/xend/XendDomainInfo.py 
b/tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   2005-05-31 12:03:55 -04:00
+++ b/tools/python/xen/xend/XendDomainInfo.py   2005-05-31 12:03:55 -04:00
@@ -192,28 +192,6 @@
     vm.savedinfo = None
     return vm
 
-def vm_restore(src, progress=False):
-    """Restore a VM from a disk image.
-
-    src      saved state to restore
-    progress progress reporting flag
-    raises   VmError for invalid configuration
-    """
-    vm = XendDomainInfo()
-    ostype = "linux" #todo Set from somewhere (store in the src?).
-    restorefn = getattr(xc, "%s_restore" % ostype)
-    d = restorefn(state_file=src, progress=progress)
-    dom = int(d['dom'])
-    if dom < 0:
-        raise VmError('restore failed')
-    try:
-        vmconfig = sxp.from_string(d['vmconfig'])
-        config = sxp.child_value(vmconfig, 'config')
-    except Exception, ex:
-        raise VmError('config error: ' + str(ex))
-    vm.dom_construct(dom, config)
-    return vm
-    
 def dom_get(dom):
     """Get info from xen for an existing domain.
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>