From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvRvE-0008OV-QU for qemu-devel@nongnu.org; Mon, 01 Dec 2014 09:25:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvRv9-0005Gk-1A for qemu-devel@nongnu.org; Mon, 01 Dec 2014 09:25:52 -0500 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:49627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvRv8-0005GO-PS for qemu-devel@nongnu.org; Mon, 01 Dec 2014 09:25:46 -0500 Received: by mail-pd0-f174.google.com with SMTP id w10so10906625pde.5 for ; Mon, 01 Dec 2014 06:25:45 -0800 (PST) References: <00b101d00a2b$1656c080$43044180$@gmail.com> <20141127163112.GK15586@stefanha-thinkpad.lan> <00c201d00d4a$e5ea1a50$b1be4ef0$@gmail.com> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Message-Id: <0D187FD4-0BCF-4331-B414-F490463F01CE@gmail.com> From: Halsey Date: Mon, 1 Dec 2014 22:25:40 +0800 Subject: Re: [Qemu-devel] Help: Convert HDD to QCOW2 img List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel Hi Stefan,=20 Thanks for so much info you provided.=20 Okay, I would keep qemu-devel mailing list in the loop, no problem. Currently, I have finished the coding of the wrapper, now testing the bdrv_r= ead/write qcow2 img. I would look into these libraries and incorporate them b= ased on the concept of interface design. Thanks. Halsey Sent from my iPhone > On 2014=C4=EA12=D4=C21=C8=D5, at 17:52, Stefan Hajnoczi wrote: >=20 > On Mon, Dec 1, 2014 at 9:40 AM, Halsey Pian wrote:= >=20 > Please keep qemu-devel@nongnu.org CCed so the discussion stays on the > mailing list. I have added it back. >=20 >> Hi Stefan, not know if there is similar module, currently I have not seen= it. If yes, please forgive me. And for the program if it >> is unique, there should be some policies for involving QEMU team, right?= Thanks. >=20 > QEMU does not have something directly equivalent to VMware's SDK for stora= ge. >=20 > But there is a very powerful API called libguestfs. Maybe it does > what you want: > http://libguestfs.org/ >=20 > libvirt has APIs for snapshotting and managing storage: > http://libvirt.org/html/libvirt-libvirt-storage.html >=20 > QEMU's qemu-img supports JSON output to make it easy to parse. > qemu-nbd can be used for read-write access. >=20 > There was an attempt to create something called libqblock but the work > was never completed. I guess your approach is similar: > https://lists.gnu.org/archive/html/qemu-devel/2013-02/msg02356.html >=20 > Stefan