From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpdXV-0003p5-FU for qemu-devel@nongnu.org; Fri, 13 Jul 2012 06:56:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpdXR-0000Uc-Fb for qemu-devel@nongnu.org; Fri, 13 Jul 2012 06:56:01 -0400 Received: from verein.lst.de ([213.95.11.211]:55360 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpdXR-0000TE-8w for qemu-devel@nongnu.org; Fri, 13 Jul 2012 06:55:57 -0400 Date: Fri, 13 Jul 2012 12:55:56 +0200 From: Christoph Hellwig Message-ID: <20120713105556.GA2025@lst.de> References: <4FFA9C30.2070201@linux.vnet.ibm.com> <20120709143607.GB5226@lst.de> <20120713091315.GB15503@stefanha-thinkpad.localdomain> <20120713092755.GA479@lst.de> <20120713094315.GA16172@stefanha-thinkpad.localdomain> <4FFFFBA1.9030007@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FFFFBA1.9030007@redhat.com> Subject: Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org, Christoph Hellwig , Paolo Bonzini , Wenchao Xia On Fri, Jul 13, 2012 at 12:42:41PM +0200, Kevin Wolf wrote: > It still feels a bit more like qemu-io-style operations. Not sure what > your use case looks like exactly, but adding a qemu-io command that > reads data from a file and writes it at a given offset into the images > (or vice versa) should be easy. This would be more or less a qemu-dd. We already have that if you read/write the whole image, it's called qemu-img convert. > If you need to get data from stdin or output it to stdout, then it might > not be the right solution. That is the use case. We could appromite it by writing a temp file and using qemu-img convert, but that's not very efficient.