
On Thu, Jun 01, 2017 at 02:02:13PM +0200, Michal Privoznik wrote:
There are couple of callbacks we pass to virStreamSendAll(), virStreamRecvAll() or its sparse variants. However, none of these callbacks reports error if one occurs and neither do the virStream* functions leaving user with very unhelpful error message:
error: cannot receive data from volume fedora.img error: An error occurred, but the cause is unknown
If we change the code to honour errno set in the callbacks, we only need to deal with ensuring virFileInData sets the errno correctly. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|