From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsCFs-0007Rq-L6 for qemu-devel@nongnu.org; Tue, 31 Jan 2012 06:52:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsCFm-0007Lu-Ud for qemu-devel@nongnu.org; Tue, 31 Jan 2012 06:52:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsCFm-0007Le-MO for qemu-devel@nongnu.org; Tue, 31 Jan 2012 06:52:02 -0500 Message-ID: <4F27D6AB.9020502@redhat.com> Date: Tue, 31 Jan 2012 12:55:23 +0100 From: Kevin Wolf MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [help]how to make qemu-img utility to support writting file or directory to the image file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?6ams56OK?= Cc: xen-devel-request@lists.xensource.com, qemu-devel@nongnu.org Am 29.01.2012 10:02, schrieb =E9=A9=AC=E7=A3=8A: > Hi, > qemu-img is only to support create/info and so on whithout writting > operation to the image file. > I have ported the reading operation for a image file form grub2 to > qemu-img. But NTFS document online is not detailed enough, how to do > inorder to achieve the goal of writting to a image file? > If anyone encountered the same problem, please reply to me. > Thanks ahead! Embedding file system drivers in qemu-img is not the right approach. You need to get the image mapped to a block device on your host (e.g. using qemu-nbd), so you can use the host's file system drivers. Kevin