Re: [libvirt] [PATCH] virsh: improve waiting for block job readiness

2016-01-05 Thread Peter Krempa
On Tue, Jan 05, 2016 at 11:19:44 +1100, Michael Chapman wrote: > On Mon, 4 Jan 2016, Peter Krempa wrote: > > On Thu, Dec 31, 2015 at 16:34:49 +1100, Michael Chapman wrote: > >> Wait for a block job event after the job has reached 100% only if > >> exactly one of the BLOCK_JOB and BLOCK_JOB_2

Re: [libvirt] [PATCH] virsh: improve waiting for block job readiness

2016-01-04 Thread Michael Chapman
On Mon, 4 Jan 2016, Andrea Bolognani wrote: On Thu, 2015-12-31 at 16:34 +1100, Michael Chapman wrote: Wait for a block job event after the job has reached 100% only if exactly one of the BLOCK_JOB and BLOCK_JOB_2 callbacks were successfully registered.   If neither callback was registered, then

Re: [libvirt] [PATCH] virsh: improve waiting for block job readiness

2016-01-04 Thread Michael Chapman
On Mon, 4 Jan 2016, Peter Krempa wrote: On Thu, Dec 31, 2015 at 16:34:49 +1100, Michael Chapman wrote: Wait for a block job event after the job has reached 100% only if exactly one of the BLOCK_JOB and BLOCK_JOB_2 callbacks were successfully registered. If neither callback was registered, then

Re: [libvirt] [PATCH] virsh: improve waiting for block job readiness

2016-01-04 Thread Andrea Bolognani
On Thu, 2015-12-31 at 16:34 +1100, Michael Chapman wrote: > Wait for a block job event after the job has reached 100% only if > exactly one of the BLOCK_JOB and BLOCK_JOB_2 callbacks were successfully > registered. >  > If neither callback was registered, then no event will ever be received. > If

Re: [libvirt] [PATCH] virsh: improve waiting for block job readiness

2016-01-04 Thread Peter Krempa
On Thu, Dec 31, 2015 at 16:34:49 +1100, Michael Chapman wrote: > Wait for a block job event after the job has reached 100% only if > exactly one of the BLOCK_JOB and BLOCK_JOB_2 callbacks were successfully > registered. > > If neither callback was registered, then no event will ever be received.

[libvirt] [PATCH] virsh: improve waiting for block job readiness

2015-12-30 Thread Michael Chapman
Wait for a block job event after the job has reached 100% only if exactly one of the BLOCK_JOB and BLOCK_JOB_2 callbacks were successfully registered. If neither callback was registered, then no event will ever be received. If both were registered, then any user-supplied path is guaranteed to