* how does variable num define for errno in libxc
@ 2008-03-19 3:48 tgh
2008-03-19 4:09 ` Daniel Stodden
0 siblings, 1 reply; 6+ messages in thread
From: tgh @ 2008-03-19 3:48 UTC (permalink / raw)
To: xen-devel
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
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: how does variable num define for errno in libxc 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 0 siblings, 1 reply; 6+ messages in thread From: Daniel Stodden @ 2008-03-19 4:09 UTC (permalink / raw) To: tgh; +Cc: xen-devel 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 -- Daniel Stodden LRR - Lehrstuhl für Rechnertechnik und Rechnerorganisation Institut für Informatik der TU München D-85748 Garching http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how does variable num define for errno in libxc 2008-03-19 4:09 ` Daniel Stodden @ 2008-03-19 8:06 ` tgh 2008-03-19 11:11 ` Daniel Stodden 0 siblings, 1 reply; 6+ messages in thread From: tgh @ 2008-03-19 8:06 UTC (permalink / raw) To: Daniel Stodden; +Cc: xen-devel 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 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how does variable num define for errno in libxc 2008-03-19 8:06 ` tgh @ 2008-03-19 11:11 ` Daniel Stodden 2008-03-19 11:57 ` Tim Deegan 2008-03-20 7:44 ` hg clone parallax tgh 0 siblings, 2 replies; 6+ messages in thread From: Daniel Stodden @ 2008-03-19 11:11 UTC (permalink / raw) To: tgh; +Cc: xen-devel On Wed, 2008-03-19 at 16:06 +0800, tgh wrote: > 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 find /usr/include -name errno.h | xargs grep 104 > 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 Didn't look at this code for a while. no immediate idea, sorry. regards, Daniel -- Daniel Stodden LRR - Lehrstuhl für Rechnertechnik und Rechnerorganisation Institut für Informatik der TU München D-85748 Garching http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how does variable num define for errno in libxc 2008-03-19 11:11 ` Daniel Stodden @ 2008-03-19 11:57 ` Tim Deegan 2008-03-20 7:44 ` hg clone parallax tgh 1 sibling, 0 replies; 6+ messages in thread From: Tim Deegan @ 2008-03-19 11:57 UTC (permalink / raw) To: tgh, xen-devel At 12:11 +0100 on 19 Mar (1205928715), Daniel Stodden wrote: > > 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) ) If the domain is already in shadow log-dirty mode, and you want it to remain in shadow log-dirty mode, surely you don't need to do anything at all? Cheers, Tim. -- Tim Deegan <Tim.Deegan@citrix.com> Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.] ^ permalink raw reply [flat|nested] 6+ messages in thread
* hg clone parallax 2008-03-19 11:11 ` Daniel Stodden 2008-03-19 11:57 ` Tim Deegan @ 2008-03-20 7:44 ` tgh 1 sibling, 0 replies; 6+ messages in thread From: tgh @ 2008-03-20 7:44 UTC (permalink / raw) To: xen-devel, xen-users hi i try to hg clone parallax from http://dsg.cs.ubc.ca/parallax/hg/parallax-devel ,but failed, how could i get it? did someone succeed in hg clonning it? where else could i get it? Thanks ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-03-20 7:44 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2008-03-19 11:11 ` Daniel Stodden 2008-03-19 11:57 ` Tim Deegan 2008-03-20 7:44 ` hg clone parallax tgh
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.