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

Re: [Xen-devel] how does variable num define for errno in libxc

To: Daniel Stodden <stodden@xxxxxxxxxx>
Subject: Re: [Xen-devel] how does variable num define for errno in libxc
From: tgh <wwwwww4187@xxxxxxxxxxx>
Date: Wed, 19 Mar 2008 16:06:41 +0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 19 Mar 2008 01:07:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1205899750.12674.4.camel@xxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <47E08D22.10803@xxxxxxxxxx> <1205899750.12674.4.camel@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
Thank you
and man errno ,there is no match or map between num,say 104 and consist ,say EBADMSG, or maybe some book more helpful

another question
i am confused about how to use shadow mechanism ,that is, when live migration, after shutdown VM,and XEN_DOMCTL_SHADOW_OP_CLEAN, how to make VM

remain in shadow mode XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY? i have modified the code to try to make it as follows if ( !(xc_shadow_control(xc_handle, dom, XEN_DOMCTL_SHADOW_OP_OFF,
                                    NULL, 0, NULL, 0, NULL) >= 0 &&
                  xc_shadow_control(xc_handle, dom,
                                    XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY,
                                    NULL, 0, NULL, 0, NULL) >= 0) )

but it seems not to  work , and how to do it ,or  any help

Thanks





Daniel Stodden 写道:
On Wed, 2008-03-19 at 11:48 +0800, tgh wrote:
hi
i try to modify code of xc_domain_save.c
and there is error, comes out from ERROR("Error when writing to state
file (5)" " (errno %d)", errno);
i am confused about where is the errno defined ,and what does variable
num mean? say errno=104 or errno=26 or some else

Error numbers are a C library feature. If you're running Linux, check
whether you have installed the base development manual pages and try
'man errno'. Or see a good book on C programming.

good luck,
Daniel



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