Re: [libvirt] [PATCH v3 4/6] virStream*All: Preserve reported error

2017-06-12 Thread John Ferlan
On 06/05/2017 04:22 AM, Michal Privoznik wrote: > If one these four functions fail (virStreamRecvAll, > virStreamSendAll, virStreamSparseRecvAll, virStreamSparseSendAll) > the stream is aborted by calling virStreamAbort(). This is, > however, an public API - therefore the first thing it does is

[libvirt] [PATCH v3 4/6] virStream*All: Preserve reported error

2017-06-05 Thread Michal Privoznik
If one these four functions fail (virStreamRecvAll, virStreamSendAll, virStreamSparseRecvAll, virStreamSparseSendAll) the stream is aborted by calling virStreamAbort(). This is, however, an public API - therefore the first thing it does is error reset. At that point any error that caused us to