ia64/xen-unstable

changeset 5235:1af7f0708b54

bitkeeper revision 1.1615 (429c80cbvtnzneyg7GyZAmZlQNm-Yg)

XendDomainInfo.py:
g/c vm_restore: no longer used.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue May 31 15:20:43 2005 +0000 (2005-05-31)
parents abe0fd18962c
children 519301e369cc 6ab1fc3f5598
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue May 31 15:20:00 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue May 31 15:20:43 2005 +0000
     1.3 @@ -192,28 +192,6 @@ def vm_recreate(savedinfo, info):
     1.4      vm.savedinfo = None
     1.5      return vm
     1.6  
     1.7 -def vm_restore(src, progress=False):
     1.8 -    """Restore a VM from a disk image.
     1.9 -
    1.10 -    src      saved state to restore
    1.11 -    progress progress reporting flag
    1.12 -    raises   VmError for invalid configuration
    1.13 -    """
    1.14 -    vm = XendDomainInfo()
    1.15 -    ostype = "linux" #todo Set from somewhere (store in the src?).
    1.16 -    restorefn = getattr(xc, "%s_restore" % ostype)
    1.17 -    d = restorefn(state_file=src, progress=progress)
    1.18 -    dom = int(d['dom'])
    1.19 -    if dom < 0:
    1.20 -        raise VmError('restore failed')
    1.21 -    try:
    1.22 -        vmconfig = sxp.from_string(d['vmconfig'])
    1.23 -        config = sxp.child_value(vmconfig, 'config')
    1.24 -    except Exception, ex:
    1.25 -        raise VmError('config error: ' + str(ex))
    1.26 -    vm.dom_construct(dom, config)
    1.27 -    return vm
    1.28 -    
    1.29  def dom_get(dom):
    1.30      """Get info from xen for an existing domain.
    1.31