WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] merge?

# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID a172340ae3f333f3634fa0afce1791a70ef09604
# Parent  a4ad6692193ab61e33ad326a9c86b9303e244473
# Parent  fa4cc3f53c6401667b4758279f7f0d2be88dbca7
merge?

diff -r a4ad6692193a -r a172340ae3f3 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Tue Sep 27 14:11:07 2005
+++ b/tools/python/xen/xm/main.py       Tue Sep 27 14:11:59 2005
@@ -187,6 +187,10 @@
     arg_check(args,1,"restore")
 
     savefile = os.path.abspath(args[0])
+
+    if not os.access(savefile, os.R_OK):
+        err("xm restore: Unable to read file %s" % savefile)
+        sys.exit(1)
 
     from xen.xend.XendClient import server
     info = server.xend_domain_restore(savefile)

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

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