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-devel

[Xen-devel] [PATCH] libxl: xc_domain_restore returns 0 on success, 1 on

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] libxl: xc_domain_restore returns 0 on success, 1 on error
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Mon, 23 Aug 2010 09:47:09 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Mon, 23 Aug 2010 01:48:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1282552884 -3600
# Node ID a91d8968269257dd4514d1c3c9994c3997897f91
# Parent  79f44934fa9dbf56d60a6d9fb76b74081eafe75f
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>

diff -r 79f44934fa9d -r a91d89682692 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Mon Aug 23 09:36:06 2010 +0100
+++ b/tools/libxl/libxl_dom.c   Mon Aug 23 09:41:24 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] libxl: xc_domain_restore returns 0 on success, 1 on error, Ian Campbell <=