From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqgA9-0001S9-Ft for qemu-devel@nongnu.org; Mon, 16 Jul 2012 03:56:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqgA8-00013F-Fk for qemu-devel@nongnu.org; Mon, 16 Jul 2012 03:56:13 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:60347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqgA7-00012o-UF for qemu-devel@nongnu.org; Mon, 16 Jul 2012 03:56:12 -0400 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Jul 2012 07:46:11 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6G7u1o66226428 for ; Mon, 16 Jul 2012 17:56:06 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6G7u1Fv025064 for ; Mon, 16 Jul 2012 17:56:01 +1000 Message-ID: <5003C90B.3050906@linux.vnet.ibm.com> Date: Mon, 16 Jul 2012 15:55:55 +0800 From: Wenchao Xia MIME-Version: 1.0 References: <4FFA9C30.2070201@linux.vnet.ibm.com> <20120709143607.GB5226@lst.de> <20120713091315.GB15503@stefanha-thinkpad.localdomain> <20120713092755.GA479@lst.de> In-Reply-To: <20120713092755.GA479@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Christoph Hellwig Cc: Paolo Bonzini , Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org 于 2012-7-13 17:27, Christoph Hellwig 写道: > On Fri, Jul 13, 2012 at 10:13:15AM +0100, Stefan Hajnoczi wrote: >> How is that different from all the qemu-io commands? > > qemu-io has no modes to just dumb the output without additional > information / statistics or for the write case just take user input > instead of a pattern. I actually tried to add raw arguments to > qemu-io, which still worked ou ok for reads but started to get > fairly ugly for the write. > > What I use in production right now is a trivial qemu-cat tool that > just does the raw reads and writes, but I think adding it as a new > sub command to qemu-img instead of another tool seems a bit cleaner. > > If you and Kevin or Anthony disagree and want the qemu-cat tool I can > submit a patch for that instead. > That seems one user case the library should support. The library is supposed to do more to expose generic block library which qemu device emulator have used, the ideal expect is that other program linked with the library could operate image the same way as qemu core. -- Best Regards Wenchao Xia