Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmyuD-0007vF-AB for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:22:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lmyu8-0007sq-C2 for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:22:36 -0400 Received: from [199.232.76.173] (port=58189 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmyu8-0007sj-8C for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:22:32 -0400 Received: from solo.fdn.fr ([80.67.169.19]:37232) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lmyu7-0004Qg-QV for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:22:32 -0400 Received: from const (reverse-89.fdn.fr [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTP id BB7B244E70 for ; Fri, 27 Mar 2009 00:22:30 +0100 (CET) Received: from samy by const with local (Exim 4.69) (envelope-from ) id 1Lmyu6-0003lN-8J for qemu-devel@nongnu.org; Fri, 27 Mar 2009 00:22:30 +0100 Date: Fri, 27 Mar 2009 00:22:30 +0100 From: Samuel Thibault Subject: Re: [Qemu-devel] [PATCH] honor IDE_DMA_BUF_SECTORS Message-ID: <20090326232230.GF5458@const.famille.thibault.fr> References: <49CA4C3D.1070705@redhat.com> <49CA59AE.8060605@eu.citrix.com> <49CA5F9F.5040203@redhat.com> <49CA60BA.5060704@eu.citrix.com> <49CA6E4A.4080408@eu.citrix.com> <49CB5793.4030006@redhat.com> <49CB599D.6000701@eu.citrix.com> <49CB5FA0.10101@redhat.com> <49CB6AF7.3080604@eu.citrix.com> <20090326224229.GA7311@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20090326224229.GA7311@lst.de> Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Christoph Hellwig, le Thu 26 Mar 2009 23:42:29 +0100, a =E9crit : > On Thu, Mar 26, 2009 at 11:45:59AM +0000, Stefano Stabellini wrote: > > My problem is that my block driver has a size limit for read and writ= e > > operations. >=20 > So fix your driver. And introduce code that could be shared with posix' fix for partial reads/writes? > I assume that driver in question is a qemu BlockDriver and not a > kernel driver behind block-raw-posix.c? Yes. > At least for Linux I couldn't think of a way to introduce such an > arbitrary limit anyway. Nothing in Linux makes filesystems and devices systematically read/write the amount of data that was requested. Samuel