[Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-07 Thread Wen Congyang
For example: if the secondary host is down, and we fail to send the data to the secondary host. xc_domain_save() returns 0. So in the function libxl__xc_domain_save_done(), rc is 0(the helper program exits normally), and retval is 0(it is xc_domain_save()'s return value). In such case, we just need

Re: [Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-08 Thread Andrew Cooper
On 08/01/16 06:38, Wen Congyang wrote: > For example: if the secondary host is down, and we fail to send the data to > the secondary host. xc_domain_save() returns 0. So in the function > libxl__xc_domain_save_done(), rc is 0(the helper program exits normally), > and retval is 0(it is xc_domain_sav

Re: [Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-08 Thread Ian Campbell
On Fri, 2016-01-08 at 14:38 +0800, Wen Congyang wrote: > For example: if the secondary host is down, and we fail to send the data > to > the secondary host. xc_domain_save() returns 0. Just to be check: On failure in this way xc_domain_save() returns 0 (i.e. success)? > So in the function > libx

Re: [Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-11 Thread Wen Congyang
On 01/09/2016 12:27 AM, Ian Campbell wrote: > On Fri, 2016-01-08 at 14:38 +0800, Wen Congyang wrote: >> For example: if the secondary host is down, and we fail to send the data >> to >> the secondary host. xc_domain_save() returns 0. > > Just to be check: On failure in this way xc_domain_save() re

Re: [Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-14 Thread Ian Campbell
On Tue, 2016-01-12 at 09:40 +0800, Wen Congyang wrote: > On 01/09/2016 12:27 AM, Ian Campbell wrote: > > On Fri, 2016-01-08 at 14:38 +0800, Wen Congyang wrote: > > > For example: if the secondary host is down, and we fail to send the > > > data > > > to > > > the secondary host. xc_domain_save() re

Re: [Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-14 Thread Wen Congyang
On 01/14/2016 06:21 PM, Ian Campbell wrote: > On Tue, 2016-01-12 at 09:40 +0800, Wen Congyang wrote: >> On 01/09/2016 12:27 AM, Ian Campbell wrote: >>> On Fri, 2016-01-08 at 14:38 +0800, Wen Congyang wrote: For example: if the secondary host is down, and we fail to send the data to >

Re: [Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-15 Thread Ian Campbell
On Fri, 2016-01-15 at 13:44 +0800, Wen Congyang wrote: > On 01/14/2016 06:21 PM, Ian Campbell wrote: > > On Tue, 2016-01-12 at 09:40 +0800, Wen Congyang wrote: > > > On 01/09/2016 12:27 AM, Ian Campbell wrote: > > > > On Fri, 2016-01-08 at 14:38 +0800, Wen Congyang wrote: > > > > > For example: if

Re: [Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-15 Thread Wen Congyang
On 01/15/2016 05:48 PM, Ian Campbell wrote: > On Fri, 2016-01-15 at 13:44 +0800, Wen Congyang wrote: >> On 01/14/2016 06:21 PM, Ian Campbell wrote: >>> On Tue, 2016-01-12 at 09:40 +0800, Wen Congyang wrote: On 01/09/2016 12:27 AM, Ian Campbell wrote: > On Fri, 2016-01-08 at 14:38 +0800, We

Re: [Xen-devel] [PATCH v3 2/5] remus: resume immediately if libxl__xc_domain_save_done() completes

2016-01-25 Thread Yang Hongyang
On 01/08/2016 02:38 PM, Wen Congyang wrote: For example: if the secondary host is down, and we fail to send the data to the secondary host. xc_domain_save() returns 0. So in the function libxl__xc_domain_save_done(), rc is 0(the helper program exits normally), and retval is 0(it is xc_domain_sa