From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoUiR-0003Cs-3G for qemu-devel@nongnu.org; Tue, 10 Jul 2012 03:18:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoUiK-0007ql-U4 for qemu-devel@nongnu.org; Tue, 10 Jul 2012 03:18:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoUiK-0007qf-Ky for qemu-devel@nongnu.org; Tue, 10 Jul 2012 03:18:28 -0400 Message-ID: <4FFBD729.8000309@redhat.com> Date: Tue, 10 Jul 2012 09:18:01 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4FFA9C30.2070201@linux.vnet.ibm.com> <20120709092705.GG16198@redhat.com> <4FFBBF8C.8080708@linux.vnet.ibm.com> In-Reply-To: <4FFBBF8C.8080708@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Wenchao Xia Cc: Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org Il 10/07/2012 07:37, Wenchao Xia ha scritto: >> >> For getting the other metadata about the disk image you mention, another >> possibility to is just make 'qemu-img info' return the data in a machine >> parseable format, ie JSON& make a client API for extracting data from >> this JSON document. >> > Thank u for the idea. The .so is introduced to let program access the > image more directly, parsing string is not so fast and it depends on > another program's stdout output, I hope to get a faster way. I doubt you actually have profiled it. Paolo