From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Sfd-0001hk-N4 for qemu-devel@nongnu.org; Mon, 11 Apr 2011 21:45:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9LZm-0003ua-00 for qemu-devel@nongnu.org; Mon, 11 Apr 2011 14:11:02 -0400 Received: from verein.lst.de ([213.95.11.211]:54580 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9LZl-0003u1-RO for qemu-devel@nongnu.org; Mon, 11 Apr 2011 14:11:01 -0400 Date: Mon, 11 Apr 2011 20:11:00 +0200 From: Christoph Hellwig Message-ID: <20110411181100.GA8877@lst.de> References: <20110406150606.GA28955@lst.de> <4D9C8391.102@redhat.com> <20110406155249.GA29963@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] GSoC - QCOW2 <-> QED image converter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lyu Mitnick Cc: Kevin Wolf , Stefan Hajnoczi , Christoph Hellwig , qemu-devel@nongnu.org On Thu, Apr 07, 2011 at 07:10:00AM +0800, Lyu Mitnick wrote: > Would you mind to share your solution about this feature?? My idea is > replace > all bdrv_pread(), bdrv_pwrite_sync(), bdrv_pwrite() in block/vpc.c to > bdrv_pread_split(), bdrv_pwrite_sync_split(), bdrv_pwrite_split() > corresponding. > bdrv_pread_split(), bdrv_pwrite_sync_split(), bdrv_pwrite_split() should > deal with > data splitted at different files via bdrv_pread(), bdrv_pwrite_sync(), > bdrv_pwrite(), > give an interface of sequential byte accessed. Is it suitable to solve this > issue?? For the synchronous bdrv_read/bdrv_write used in vmdk the problem actually is rather trivial, as it already split it's reads/write on a cluster boundary internally, and the higher level split is always alignment to a cluster boundary. So basically no new work there.