[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 20/29] tools/libxl: Update datacopier to support sending data only



On 11/09/14 12:56, Ian Campbell wrote:
> On Wed, 2014-09-10 at 18:10 +0100, Andrew Cooper wrote:
>> From: Wen Congyang <wency@xxxxxxxxxxxxxx>
>>
>> datacopier is to read some data and write it out. If we
>> have some data to send it over network, we cannot use
>> datacopier. Update it to support this case.
> I'm afraid I'm not sure what this changelog is saying. If we have data
> to send over the network then why can't we use datacopier? How does
> making this conditional on readfd's validity help that case?

datacopier was originally strictly copying data from infd to outfd,
until EOF.

These patches around here in the series extend datacopier to include
"please write this local buffer to outfd", "please read $N bytes from
infd to this local buffer", and "please copy exactly $N bytes from infd
to outfd", all as asynchronous operations.

~Andrew


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.