Re: [libvirt] [ruby-libvirt] Don't make volume upload zero bytes

2016-06-12 Thread Guido Günther
On Fri, Jun 10, 2016 at 03:58:09PM -0400, Chris Lalancette wrote: > On Fri, Jun 10, 2016 at 11:10 AM, Guido Günther wrote: > > > The virStreamSourceFunc internal_sendall currently returns the first > > value passed in from the block, which according the ruby-libvirt docs > > should be zero: > > >

Re: [libvirt] [ruby-libvirt] Don't make volume upload zero bytes

2016-06-10 Thread Chris Lalancette
On Fri, Jun 10, 2016 at 11:10 AM, Guido Günther wrote: > The virStreamSourceFunc internal_sendall currently returns the first > value passed in from the block, which according the ruby-libvirt docs > should be zero: > > The send block should return an array of 2 elements; the first element >

[libvirt] [ruby-libvirt] Don't make volume upload zero bytes

2016-06-10 Thread Guido Günther
The virStreamSourceFunc internal_sendall currently returns the first value passed in from the block, which according the ruby-libvirt docs should be zero: The send block should return an array of 2 elements; the first element should be the return code from the block (-1 for error, 0 otherwise)