[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 4/6] tools/libxl: Allow limiting amount copied by datacopier
On 11/03/15 12:15, Ian Campbell wrote: > On Fri, 2015-03-06 at 19:05 +0000, Andrew Cooper wrote: >> From: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx> >> >> Currently, a datacopier will unconditionally read until EOF on its read fd. >> >> For migration v2, libxl needs to read records of a specific length out of the >> migration stream, without reading any further data. >> >> Introduce a parameter, maxread, which may be used to stop the datacopier >> ahead >> of reaching EOF. > maxread is ok as a parameter but not really in the dc. > > It's unfortunate that "toread" is already used. Perhaps "remaining" (or > remread if you want to get terse)? ssize_t bytes_to_read perhaps? with -1 being a sentinel for "until EOF" ? ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |