[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: xc_domain_restore returns 0 on success, 1 on error



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1282670768 -3600
# Node ID d545371bc3adae551af6a80965da7024f0e1184b
# Parent  a487392e93a864eb532bcc28c0363b7dd9d78715
libxl: xc_domain_restore returns 0 on success, 1 on error

Fix restore_common to handle it this way.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/libxl_dom.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r a487392e93a8 -r d545371bc3ad tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Tue Aug 24 18:19:19 2010 +0100
+++ b/tools/libxl/libxl_dom.c   Tue Aug 24 18:26:08 2010 +0100
@@ -260,7 +260,7 @@ int restore_common(libxl_ctx *ctx, uint3
                              state->store_port, &state->store_mfn,
                              state->console_port, &state->console_mfn,
                              info->hvm, info->u.hvm.pae, 0);
-    if ( rc < 0 ) {
+    if ( rc ) {
         XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "restoring domain");
         return ERROR_FAIL;
     }

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.