All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: 马磊 <aware.why@gmail.com>
Cc: xen-devel-request@lists.xensource.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [help]how to make qemu-img utility to support writting file or directory to the image file
Date: Tue, 31 Jan 2012 12:55:23 +0100	[thread overview]
Message-ID: <4F27D6AB.9020502@redhat.com> (raw)
In-Reply-To: <CA+ePHTB60Yrdfv=o_wD_gDCSR7u28_6kWFm+VQDO9yJ26-s6VA@mail.gmail.com>

Am 29.01.2012 10:02, schrieb 马磊:
> 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

  reply	other threads:[~2012-01-31 11:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-29  9:02 [Qemu-devel] [help]how to make qemu-img utility to support writting file or directory to the image file 马磊
2012-01-31 11:55 ` Kevin Wolf [this message]
2012-01-31 12:30 ` TeLeMan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F27D6AB.9020502@redhat.com \
    --to=kwolf@redhat.com \
    --cc=aware.why@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=xen-devel-request@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.