From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ross Lagerwall Subject: Re: [PATCH 22/29] tools/libxl: Allow limiting amount copied by datacopier Date: Thu, 11 Sep 2014 13:23:17 +0100 Message-ID: <54119435.3030608@citrix.com> References: <1410369067-1330-1-git-send-email-andrew.cooper3@citrix.com> <1410369067-1330-23-git-send-email-andrew.cooper3@citrix.com> <1410436937.25388.4.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1410436937.25388.4.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , Andrew Cooper Cc: Ian Jackson , Xen-devel List-Id: xen-devel@lists.xenproject.org On 09/11/2014 01:02 PM, Ian Campbell wrote: > On Wed, 2014-09-10 at 18:11 +0100, Andrew Cooper wrote: >> From: Ross Lagerwall >> >> Add a parameter, maxread, to limit the amount of data read from the >> source fd of a datacopier. > > Why is this useful? > It is useful for splicing _part_ of a stream from one fd to another rather than splicing the whole stream. i.e. it is used in this series for writing out the emulator context part of the libxl stream to a qemu save file. -- Ross Lagerwall