qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lyu Mitnick <mitnick.lyu@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] GSoC - QCOW2 <-> QED image converter
Date: Wed, 6 Apr 2011 19:13:04 +0800	[thread overview]
Message-ID: <BANLkTi=DTDFQzMDm4hPiyx6maPrOu5SH5Q@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=jK8zwbq=Mn5t=aXTZzWJLxGTpmQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1327 bytes --]

Hello Stefan,

"splitting hard disk images" feature depends on win32 file system. I am
wondering
whether it is suitable to implement in raw-win32.c?? My idea is as follows:
(1) adding an array to store file descriptor related in BDRVRawState
(2) detect all splitted files in raw_open(). ie. consider
files filename.vhd, filename.v01,
     filename.v02 ... . and construct the table to convert from sector_num
to splitted file
     and offset (store in BDRVRawState, too).
(3) use table constructed in step2 to read, write and flush
(4) close all opened splitted files in raw_close()

Would you mind to give some advice about the solution I take in this
problem??

2011/4/6 Stefan Hajnoczi <stefanha@gmail.com>

> On Tue, Apr 5, 2011 at 7:03 PM, Lyu Mitnick <mitnick.lyu@gmail.com> wrote:
> > Hello Stefan, Kevin
> > I don't want to diversify my GSoC applications. I thought I should do my
> > best of
> > supporting fully VHD and add asynchronous io into block/vpc.c via
> > coroutines. I
> > noticed that there is "splitting hard disk images" feature in VHD
> > specification. I
> > have take a look of block/raw-win32.c and guess there isn't this feature
> in
> > block/vpc.c.
> > I am wondering whether what I learned is right??
>
> Yes, split images are not supported by block/vpc.c.
>
> Stefan
>


Thanks so much

Mitnick

[-- Attachment #2: Type: text/html, Size: 1963 bytes --]

  reply	other threads:[~2011-04-06 11:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04 18:56 [Qemu-devel] GSoC - QCOW2 <-> QED image converter Lyu Mitnick
2011-04-05  9:15 ` Stefan Hajnoczi
2011-04-05 18:03   ` Lyu Mitnick
2011-04-06  6:41     ` Stefan Hajnoczi
2011-04-06 11:13       ` Lyu Mitnick [this message]
2011-04-06 12:46         ` Stefan Hajnoczi
2011-04-06 15:06       ` Christoph Hellwig
2011-04-06 15:15         ` Kevin Wolf
2011-04-06 15:52           ` Christoph Hellwig
2011-04-06 23:10             ` Lyu Mitnick
2011-04-11 18:11               ` Christoph Hellwig

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='BANLkTi=DTDFQzMDm4hPiyx6maPrOu5SH5Q@mail.gmail.com' \
    --to=mitnick.lyu@gmail.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).