All of lore.kernel.org
 help / color / mirror / Atom feed
From: tgh <wwwwww4187@sina.com.cn>
To: Daniel Stodden <stodden@cs.tum.edu>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: how does variable num define for errno  in libxc
Date: Wed, 19 Mar 2008 16:06:41 +0800	[thread overview]
Message-ID: <47E0C991.5070704@sina.com.cn> (raw)
In-Reply-To: <1205899750.12674.4.camel@thinkpad.localdomain>

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

  reply	other threads:[~2008-03-19  8:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19  3:48 how does variable num define for errno in libxc tgh
2008-03-19  4:09 ` Daniel Stodden
2008-03-19  8:06   ` tgh [this message]
2008-03-19 11:11     ` Daniel Stodden
2008-03-19 11:57       ` Tim Deegan
2008-03-20  7:44       ` hg clone parallax tgh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47E0C991.5070704@sina.com.cn \
    --to=wwwwww4187@sina.com.cn \
    --cc=stodden@cs.tum.edu \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.