From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 2/6] tools/libxl: Update datacopier to support sending data only Date: Wed, 11 Mar 2015 12:07:54 +0000 Message-ID: <1426075674.21353.212.camel@citrix.com> References: <1425668741-28003-1-git-send-email-andrew.cooper3@citrix.com> <1425668741-28003-3-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1425668741-28003-3-git-send-email-andrew.cooper3@citrix.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: Andrew Cooper Cc: Wei Liu , Ian Jackson , Wen Congyang , Xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 2015-03-06 at 19:05 +0000, Andrew Cooper wrote: > From: Wen Congyang > > Currently, starting a datacopier requires a valid read and write fd, but this > is a problem when purely sending data from a local buffer to a writable fd. > > The prefixdata mechanism already exists and works for inserting data from a > local buffer ahead of reading from the read fd. > > Make the lack of a read fd non-fatal. A datacopier with no read fd, but some > prefixdata will write the prefixdata to the write fd and complete successfully. > > Signed-off-by: Wen Congyang > [Rewrite commit message] > Signed-off-by: Andrew Cooper > CC: Ian Campbell > CC: Ian Jackson > CC: Wei Liu Acked-by: Ian Campbell