ia64/xen-unstable

changeset 7080:a172340ae3f3

merge?
author kaf24@firebug.cl.cam.ac.uk
date Tue Sep 27 15:11:59 2005 +0100 (2005-09-27)
parents a4ad6692193a fa4cc3f53c64
children 7c5d9879967d
files
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Tue Sep 27 15:11:07 2005 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Tue Sep 27 15:11:59 2005 +0100
     1.3 @@ -188,6 +188,10 @@ def xm_restore(args):
     1.4  
     1.5      savefile = os.path.abspath(args[0])
     1.6  
     1.7 +    if not os.access(savefile, os.R_OK):
     1.8 +        err("xm restore: Unable to read file %s" % savefile)
     1.9 +        sys.exit(1)
    1.10 +
    1.11      from xen.xend.XendClient import server
    1.12      info = server.xend_domain_restore(savefile)
    1.13      PrettyPrint.prettyprint(info)