[virt-tools-list] [PATCH libosinfo] Handle short reads when extracting ISO headers

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Mar 21 03:16:45 UTC 2012


On Fri, Mar 16, 2012 at 5:01 PM, Daniel P. Berrange <berrange at redhat.com> wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> You cannot assume that g_input_stream_read_async will return
> as many bytes as you requested. It is perfectly valid to get
> a short read. Code must be prepared to repeat the read operation
> multiple times until all data is read, or EOF/error occurs.

ACK! Sorry for the delay but I thought I already ACK'ed this.

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124




More information about the virt-tools-list mailing list