From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn6Vu-0007Dx-Vr for qemu-devel@nongnu.org; Tue, 07 Aug 2018 14:15:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fn6Vq-0002iW-0v for qemu-devel@nongnu.org; Tue, 07 Aug 2018 14:15:22 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50568 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fn6Vp-0002dk-SE for qemu-devel@nongnu.org; Tue, 07 Aug 2018 14:15:17 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A43F3402315B for ; Tue, 7 Aug 2018 18:15:16 +0000 (UTC) From: Bandan Das References: <20180720214020.22897-1-bsd@redhat.com> <20180720214020.22897-4-bsd@redhat.com> <20180807132847.gavgozyrmtmyol7u@sirius.home.kraxel.org> Date: Tue, 07 Aug 2018 14:15:14 -0400 In-Reply-To: <20180807132847.gavgozyrmtmyol7u@sirius.home.kraxel.org> (Gerd Hoffmann's message of "Tue, 7 Aug 2018 15:28:47 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 3/5] dev-mtp: retry write for incomplete transfers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Gerd Hoffmann writes: > On Fri, Jul 20, 2018 at 05:40:18PM -0400, Bandan Das wrote: >> For large buffers, write may not copy the full buffer. For example, >> on Linux, write imposes a limit of 0x7ffff000. Note that this does >> not fix >4G transfers but ~>2G files will transfer successfully. > > Hmm, I guess it would be a good idea to write the file in smaller > pieces, so we don't need a 2G host buffer to let the guest write > a 2G file ... > > (as incremental improvement on top of this series). > Sounds good, I will add this to my todo list. > cheers, > Gerd