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] [xen-unstable] libxl: xc_domain_restore returns 0 on suc

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: xc_domain_restore returns 0 on success, 1 on error
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Aug 2010 03:31:12 -0700
Delivery-date: Thu, 26 Aug 2010 03:36:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxl: xc_domain_restore returns 0 on success, 1 on error, Xen patchbot-unstable <=